13c79d6022b713746d96f408250f22993898bf140b71bafb9bbabf25051334638708fb5ca1798c3aa8e3f495b0568841e554db4f9b39c4a3b66b9b89c0a5f5 700 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # [postcss][postcss]-unique-selectors
  2. > Ensure CSS selectors are unique.
  3. ## Install
  4. With [npm](https://npmjs.org/package/postcss-unique-selectors) do:
  5. ```
  6. npm install postcss-unique-selectors --save
  7. ```
  8. ## Example
  9. Selectors are sorted naturally, and deduplicated:
  10. ### Input
  11. ```css
  12. h1,h3,h2,h1 {
  13. color: red
  14. }
  15. ```
  16. ### Output
  17. ```css
  18. h1,h2,h3 {
  19. color: red
  20. }
  21. ```
  22. ## Usage
  23. See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
  24. examples for your environment.
  25. ## Contributors
  26. See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
  27. ## License
  28. MIT © [Ben Briggs](http://beneb.info)
  29. [postcss]: https://github.com/postcss/postcss