We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal example:
@font-face { font-family: font; font-weight: regular; } @font-face { font-family: font; font-weight: bold; }
This will minify to:
@font-face{font-family:font;font-weight:regular}
Which is wrong.
The text was updated successfully, but these errors were encountered:
It appears to be an error in this function: https://github.com/jakubpawlowicz/clean-css/blob/f273443f3d697764777e4618121d780c6894a922/lib/optimizer/level-2/remove-unused-at-rules.js#L112
The check for used font-family rules doesn't check if the block is itself a @font-face block.
font-family
@font-face
Sorry, something went wrong.
👍 it should be checked that way indeed, thanks for digging for the solution
Fixes #950 - removing unused @font-face at rules.
f08ab95
Why: * A `@font-face` with particular font-family can be declared more than once, e.g. when referring different font weights.
93f3996
Fixed in 4.1.4!
Thank you!
No branches or pull requests
Minimal example:
This will minify to:
Which is wrong.
The text was updated successfully, but these errors were encountered: