lhl 6ff0e96ad3 8-4-1 | 1 年之前 | |
---|---|---|
.. | ||
dist | 1 年之前 | |
CHANGELOG.md | 1 年之前 | |
LICENSE-MIT | 1 年之前 | |
README.md | 1 年之前 | |
package.json | 1 年之前 |
Discard duplicate rules in your CSS files with PostCSS.
With npm do:
npm install postcss-discard-duplicates --save
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:
h1, h2 {
color: blue;
}
h2, h1 {
color: blue;
}
It has to assume that your rules have already been transformed by another processor, otherwise it would be responsible for too many things.
h1 {
margin: 0 auto;
margin: 0 auto
}
h1 {
margin: 0 auto
}
h1 {
margin: 0 auto
}
See the PostCSS documentation for examples for your environment.
See CONTRIBUTORS.md.
MIT © Ben Briggs