Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
700 bytes
|
Line | |
---|
1 | # [postcss][postcss]-unique-selectors
|
---|
2 |
|
---|
3 | > Ensure CSS selectors are unique.
|
---|
4 |
|
---|
5 | ## Install
|
---|
6 |
|
---|
7 | With [npm](https://npmjs.org/package/postcss-unique-selectors) do:
|
---|
8 |
|
---|
9 | ```
|
---|
10 | npm install postcss-unique-selectors --save
|
---|
11 | ```
|
---|
12 |
|
---|
13 | ## Example
|
---|
14 |
|
---|
15 | Selectors are sorted naturally, and deduplicated:
|
---|
16 |
|
---|
17 | ### Input
|
---|
18 |
|
---|
19 | ```css
|
---|
20 | h1,h3,h2,h1 {
|
---|
21 | color: red
|
---|
22 | }
|
---|
23 | ```
|
---|
24 |
|
---|
25 | ### Output
|
---|
26 |
|
---|
27 | ```css
|
---|
28 | h1,h2,h3 {
|
---|
29 | color: red
|
---|
30 | }
|
---|
31 | ```
|
---|
32 |
|
---|
33 | ## Usage
|
---|
34 |
|
---|
35 | See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
|
---|
36 | examples for your environment.
|
---|
37 |
|
---|
38 | ## Contributors
|
---|
39 |
|
---|
40 | See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
---|
41 |
|
---|
42 | ## License
|
---|
43 |
|
---|
44 | MIT © [Ben Briggs](http://beneb.info)
|
---|
45 |
|
---|
46 | [postcss]: https://github.com/postcss/postcss
|
---|
Note:
See
TracBrowser
for help on using the repository browser.