Donny/강동윤
d1097ccb59
feat(css/parser): Store lexed comments ( #8091 )
...
**Description:**
For now, we leave every comment as a leading comment. As logic for determining leading vs trailing is quite complex, I'll do it with another PR.
2023-10-10 11:42:20 +00:00
Jason
cfb7b511ee
feat(css/parser): Support @starting-style
( #7677 )
2023-07-20 14:55:50 +09:00
Vincent Ricard
df09d2fd4b
feat(css/minifier) Follow the CSS spec more rigorously ( #6291 )
...
**Description:**
Full refactor of the "calc" simplification to be more compliant with the spec.
2023-03-20 14:14:51 +00:00
Alexander Akait
8af627d5c4
feat(css/parser): Normalize urange ( #6704 )
2022-12-27 12:22:46 +00:00
Alexander Akait
ebebd60875
refactor(css/codegen): Do not use raw
( #6674 )
2022-12-22 01:36:36 +00:00
Alexander Akait
2571070148
feat(css/parser): Normalize and improve function name ( #6667 )
2022-12-20 12:43:58 +00:00
Alexander Akait
c01464e452
feat(css/parser): Normalize URL functions ( #6675 )
2022-12-19 07:53:29 +00:00
Alexander Akait
1d3e06aa88
fix(css/minifier): Fix a bug with a modern hash ( #6664 )
2022-12-19 13:15:23 +09:00
Alexander Akait
2fd3ced40c
feat(css/minifier): Improve compression of media at-rules ( #6665 )
2022-12-16 04:39:48 +00:00
Alexander Akait
3d3863dc1f
feat(css/parser): Normalize dimension ( #6654 )
2022-12-16 04:04:07 +00:00
Alexander Akait
f6292e63b5
feat(css/minifier): Compress alpha in a hex ( #6653 )
2022-12-16 00:30:47 +00:00
Alexander Akait
dd7280d5bd
fix(css/minifier): Don't remove custom variables with different case ( #6655 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-12-15 08:31:43 +00:00
Alexander Akait
649438b76a
feat(css/parser): Normalize selector AST ( #6657 )
2022-12-15 06:55:22 +00:00
Alexander Akait
b257d5d591
feat(css/parser): Normalize hex colors ( #6652 )
2022-12-15 04:34:07 +00:00
Alexander Akait
d3fbfffb32
fix(css/minifier): Fix minification of @supports
at-rule ( #6632 )
2022-12-13 06:12:27 +00:00
Alexander Akait
fb94694cf3
feat(css/minifier): Remove adjacent identical declarations ( #6619 )
2022-12-12 13:11:33 +00:00
Alexander Akait
59e8bf4976
fix(css/minifier): Fix compression of timing functions ( #6618 )
2022-12-12 04:27:13 +00:00
Alexander Akait
208fd559ba
fix(css/minifier): Fix compressions of transform functions ( #6617 )
2022-12-12 03:13:01 +00:00
Alexander Akait
cb49fa6f1d
feat(css/minifier): Support to
and from
with initial
( #6613 )
2022-12-12 02:36:48 +00:00
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