-
Notifications
You must be signed in to change notification settings - Fork 320
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
Option to remove unused at rules #862
Labels
Milestone
Comments
Cool idea, thanks @clarcharr! |
jakubpawlowicz
changed the title
Option to remove unused @font-face
Option to remove unused at rules
Mar 24, 2017
So let's have it implemented for all at rules.
|
jakubpawlowicz
added a commit
that referenced
this issue
Apr 20, 2017
Why: * `@counter-style` can define a non-standard values which should be treated as first class citizens.
jakubpawlowicz
added a commit
that referenced
this issue
Apr 20, 2017
Why: * When an at-rule, i.e. `@counter-style`, `@font-face`, `@keyframes`, or `@namespace`, is not referenced anywhere in a stylsheet it can be safely removed; * inspired by https://www.npmjs.com/package/postcss-discard-unused
Scheduled for 4.1 release. |
Awesome! Thank you! |
It's been released in 4.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While this shouldn't be on by default, it'd be nice to add an option to remove @ font-face directives from the CSS if none of the fonts in them are referenced.
The text was updated successfully, but these errors were encountered: