Commit Graph

56 Commits

Author SHA1 Message Date
Alexander Akait
cd1319d9be
test(css/minifier): Fix fixture tester (#6222) 2022-10-27 12:43:01 +00:00
Alexander Akait
ac619e88bf
refactor(css/parser): Use new approach for parsing invalid tokens (#6224)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-22 04:21:40 +00:00
Alexander Akait
8b6b9c0961
feat(css/minifier): Merge rules (#6220) 2022-10-21 21:49:25 +09:00
Alexander Akait
055bdcd997
test(css/minifier): Add tests for layer (#6221) 2022-10-21 01:36:00 +00:00
Alexander Akait
ac7cfa13b6
fix(css/minifier): Don't touch @supports (#6199) 2022-10-19 02:51:49 +00:00
Vincent Ricard
d4a733d764
feat(css/minifier): Handle nested calc() (#6153) 2022-10-17 12:08:43 +00:00
Alexander Akait
0f38e38984
feat(css/minifier): Handle zero in at-rules (#6155) 2022-10-15 06:21:20 +00:00
Alexander Akait
26aeb18c0c
fix(css/parser): Improve handling of math functions in at-rules (#6140) 2022-10-14 14:46:36 +00:00
Vincent Ricard
205a317c4d
feat(css/minifier): Compute calc expressions (#5966) 2022-10-12 10:03:14 +00:00
Alexander Akait
a920997f4b
feat(css/codegen): Support lowercase case insensitivity (#6113) 2022-10-11 04:31:17 +00:00
Alexander Akait
b3a05a057a
feat(css/codegen): Minify idents (#5972) 2022-09-29 01:35:33 +00:00
Alexander Akait
dfdad69c03
feat(css/minifier): Remove duplicate @counter-style at-rules (#5970) 2022-09-28 02:55:17 +00:00
Jason
1dc5307069
feat(css/minifier): Minify the name of @keyframes (#5894)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/5889.

Co-authored-by: 一丝 <percyley@qq.com>
2022-09-22 03:12:50 +00:00
Alexander Akait
2bf24195f2
feat(css/parser): Parse more math functions in @media (#5904) 2022-09-20 10:45:49 +09:00
Alexander Akait
211b0a93fd
feat(css/minifier): Compress @media and @supports (#5828) 2022-09-13 04:43:41 +00:00
Alexander Akait
1803874f14
fix(css/minifier): Fix minification of universal selectors (#5826) 2022-09-12 01:11:36 +00:00
Alexander Akait
b531410ea9
fix(css/minifier): Compress alpha (#5825) 2022-09-11 23:37:35 +00:00
Donny/강동윤
9e81c2639b
perf(css/minifier): Merge passes and reduce clone (#5822) 2022-09-11 18:24:53 +09:00
Alexander Akait
4a5e347a8a
fix(css/minifier): Don't compress none for keyframes (#5663) 2022-08-30 01:55:29 +00:00
Alexander Akait
e2aca46889
feat(css): Support forgiving selector (#5539) 2022-08-29 15:25:48 +00:00
Alexander Akait
780a4c2b5d
feat(css/minifier): Remove duplications (#5542) 2022-08-18 02:23:26 +00:00
Alexander Akait
ce347461ee
feat(css/minifier): Remove duplicate selectors (#5257) 2022-07-26 01:55:52 +00:00
Alexander Akait
dada2d7d55
feat(html/minifier): Allow specifying options for other tools (#5125) 2022-07-11 13:08:40 +00:00
Alexander Akait
d6a827d173
feat(css/minifier): Compress hwb color (#5155) 2022-07-09 04:42:13 +00:00
Alexander Akait
714ff5321d
feat(css/minifier): Compress hsl colors (#5142) 2022-07-08 05:38:44 +00:00
Alexander Akait
65b18ee602
feat(css/minifier): Compress colors (#4308) 2022-04-12 13:35:57 +00:00
Alexander Akait
6696a93b5c
refactor(css/ast): Union all at-rules to one at-rule in AST (#4189) 2022-04-01 20:53:23 +09:00
Alexander Akait
364ebd951a
feat(css/minifier): Compress more properties (#4155) 2022-03-25 06:20:39 +00:00
Alexander Akait
6b6664a92d
feat(css/minifier): Remove @charset at-rule if possible (#4135) 2022-03-23 21:13:52 +00:00
Alexander Akait
93866d0be5
feat(css/minifier): Compress more properties (#4130) 2022-03-23 14:58:47 +00:00
Alexander Akait
5a6ebd36ee
feat(css/codegen): Support source map (#3958) 2022-03-11 05:22:14 +00:00
Alexander Akait
ccfb4bfc0b
feat(css/minifier): Compress @import at-rule (#3850) 2022-03-04 12:33:39 +00:00
Alexander Akait
0db6915e32
feat(css/minifier): Compress more declarations (#3840) 2022-03-03 23:16:53 +00:00
Alexander Akait
3df887ca37
feat(css): Support color functions (#3836) 2022-03-04 06:24:22 +09:00
Alexander Akait
500d62c085
feat(css/minifier): Convert more length (#3769) 2022-02-28 06:26:33 +00:00
Alexander Akait
91cf965e07
feat(css/ast): Improve type definitions for unicode ranges (#3757) 2022-02-27 14:16:22 +09:00
Alexander Akait
f258ee4729
fix(css): Fix processing of integers (#3752) 2022-02-26 13:51:59 +00:00
Alexander Akait
f5c5e77612
feat(css/ast): Support more selectors (#3729) 2022-02-25 02:05:12 +00:00
Alexander Akait
8512719e12
feat(css/minifier): Compress display (#3706) 2022-02-24 22:04:10 +09:00
Alexander Akait
bff04b4afe
feat(css/minifier): Compress alpha of values (#3707) 2022-02-24 05:35:54 +00:00
Alexander Akait
cd95ac4caf
feat(css/minifier): Compress more properties (#3708) 2022-02-24 04:01:45 +00:00
Alexander Akait
7079e88744
feat(css/minifier): Compress lengths (#3698) 2022-02-23 15:21:51 +00:00
Alexander Akait
b1476d2ac6
feat(css/minifier): Compress urange (#3668) 2022-02-23 08:45:25 +00:00
Alexander Akait
9b28d4da79
feat(css/minifier): Compress frequency (#3669) 2022-02-22 15:02:45 +00:00
Alexander Akait
1afbd1b6e9
feat(css/minifier): Compress transform functions (#3663) 2022-02-22 12:52:38 +00:00
Alexander Akait
fab6473183
feat(css/minifier): Compress urls (#3666) 2022-02-22 11:44:24 +00:00
Alexander Akait
0b5f5544c6
feat(css/minifier): Compress degrees to zero (#3664) 2022-02-22 03:30:08 +00:00
Alexander Akait
7d15316ee1
feat(css/minifier): Compress declarations (#3649) 2022-02-21 00:26:09 +09:00
Alexander Akait
9e691fe75b
feat(css/minifier): Compress selectors (#3623) 2022-02-20 01:17:46 +09:00
Alexander Akait
8e06b2a42c
feat(css/minifier): Implement the rule for easing functions (#3615) 2022-02-18 13:55:24 +09:00