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.

46 lines
700 B

4 years ago
  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