You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# [postcss][postcss]-discard-duplicates
> Discard duplicate rules in your CSS files with PostCSS.
## Install
With [npm](https://npmjs.org/package/postcss-discard-duplicates) do:
```npm install postcss-discard-duplicates --save```
## Example
This module will remove all duplicate rules from your stylesheets. It works onat rules, normal rules and declarations. Note that this module does not have anyresponsibility for normalising declarations, selectors or whitespace, so that itconsiders these two rules to be different:
```cssh1, h2 { color: blue;}
h2, h1 { color: blue;}```
It has to assume that your rules have already been transformed by anotherprocessor, otherwise it would be responsible for too many things.
### Input
```cssh1 { margin: 0 auto; margin: 0 auto}
h1 { margin: 0 auto}```
### Output
```cssh1 { margin: 0 auto}```
## Usage
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) forexamples for your environment.
## Contributors
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
## License
MIT © [Ben Briggs](http://beneb.info)
[postcss]: https://github.com/postcss/postcss
|