You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into this problem also, @layer declaration gets removed but the @layer {} nesting remains. I changed to cssnano for now. Side note: cssnano doubles the time it takes to process my css compared to clean-css.
Ran into this problem also, @layer declaration gets removed but the @layer {} nesting remains. I changed to cssnano for now. Side note: cssnano doubles the time it takes to process my css compared to clean-css.
Suggest to use lightningcss. cssnano can accept @layer declaration but just ignore it, and lightningcss can even remove the spaces after the commas from the @layer declaration.
IMPORTANT: clean-css is now in a maintenance mode. PRs are still welcome, and I will try do an occasional bugfix relase.
Precheck
Environment
npm ls clean-css
: 5.3.3node -v
: v20.6.1Configuration options
Input CSS
Example from https://developer.mozilla.org/en-US/docs/Web/CSS/@layer
Actual output CSS
Nothing. And even ignore the following CSS rules.
Warning
Invalid character(s) 'utilities;' at 1:22. Ignoring.
Expected output CSS
The text was updated successfully, but these errors were encountered: