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.

49 lines
729 B

4 years ago
  1. # [postcss][postcss]-discard-empty
  2. > Discard empty rules and values with PostCSS.
  3. ## Install
  4. With [npm](https://npmjs.org/package/postcss-discard-empty) do:
  5. ```
  6. npm install postcss-discard-empty --save
  7. ```
  8. ## Example
  9. For more examples see the [tests](src/__tests__/index.js).
  10. ### Input
  11. ```css
  12. @font-face;
  13. h1 {}
  14. {color:blue}
  15. h2 {color:}
  16. h3 {color:red}
  17. ```
  18. ### Output
  19. ```css
  20. h3 {color:red}
  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