postcss-discard-empty
Discard empty rules and values with PostCSS.
Last updated 7 years ago by ai .
MIT · Repository · Bugs · Original npm
$ cnpm install postcss-discard-empty 
SYNC missed versions from official npm registry.

postcss-discard-empty

Discard empty rules and values with PostCSS.

Install

With npm do:

npm install postcss-discard-empty --save

Example

For more examples see the tests.

Input

@font-face;
h1 {}
{color:blue}
h2 {color:}
h3 {color:red}

Output

h3 {color:red}

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

Current Tags

  • 6.0.0                                ...           latest (2 years ago)

10 Versions

  • 6.0.0                                ...           2 years ago
  • 5.1.1                                ...           3 years ago
  • 5.0.2                                ...           4 years ago
  • 5.0.1                                ...           4 years ago
  • 4.0.0-nightly.2020.2.6                                ...           5 years ago
  • 5.0.0-rc.2                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 1.1.2                                ...           10 years ago
  • 2.1.0                                ...           9 years ago
  • 4.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org