postcss-discard-duplicates
Last updated
Was this helpful?
Last updated
Was this helpful?
Discard duplicate rules in your CSS files with PostCSS.
With do:
This module will remove all duplicate rules from your stylesheets. It works on at rules, normal rules and declarations. Note that this module does not have any responsibility for normalising declarations, selectors or whitespace, so that it considers these two rules to be different:
It has to assume that your rules have already been transformed by another processor, otherwise it would be responsible for too many things.
See the for examples for your environment.
See .
MIT ©