JSPM

  • Created
  • Published
  • Downloads 10514995
  • Score
    100M100P100Q233040F
  • License MIT

Ensure CSS selectors are unique.

Package Exports

  • postcss-unique-selectors
  • postcss-unique-selectors/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-unique-selectors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

postcss-unique-selectors

Ensure CSS selectors are unique.

Install

With npm do:

npm install postcss-unique-selectors --save

Example

Selectors are sorted naturally, and deduplicated:

Input

h1,h3,h2,h1 {
    color: red
}

Output

h1,h2,h3 {
    color: red
}

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs