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