Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(css/parser): normalize declaration and important #6663

Merged
merged 3 commits into from Dec 16, 2022

Conversation

alexander-akait
Copy link
Collaborator

@alexander-akait alexander-akait commented Dec 15, 2022

Description:

Normalize declartion and important, also found a bug in swc_css_prefixer (because we don't check case) and fixed

BREAKING CHANGE:

No

Related issue (if exists):

No

minified.push((chars[0] as char).to_ascii_lowercase());
minified.push((chars[2] as char).to_ascii_lowercase());
minified.push((chars[4] as char).to_ascii_lowercase());
minified.push((chars[6] as char).to_ascii_lowercase());
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to remove it too, we don't need it, because we already normalize hex colors

@kdy1 kdy1 added this to the Planned milestone Dec 15, 2022
@kdy1 kdy1 self-assigned this Dec 15, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swc-bump:

  • swc_css_codegen
  • swc_css_parser
  • swc_css_minifier
  • swc_css_prefixer

@kdy1 kdy1 enabled auto-merge (squash) December 16, 2022 02:33
@kdy1 kdy1 merged commit 1fc97a7 into swc-project:main Dec 16, 2022
@alexander-akait alexander-akait deleted the feat-normalize-declarations branch December 18, 2022 15:28
@kdy1 kdy1 modified the milestones: Planned, 1.3.24 Dec 21, 2022
@swc-project swc-project locked as resolved and limited conversation to collaborators Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants