Skip to content
This repository has been archived by the owner. It is now read-only.
DEPRECATED, see https://github.com/cssnano/cssnano | Discard empty rules and values with PostCSS.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.all-contributorsrc Update contributors list. Jul 14, 2016
.babelrc Tidy up module. Feb 6, 2016
.editorconfig Initial commit. Mar 29, 2015
.gitignore Tidy up module. Feb 6, 2016
.travis.yml Update to ESLint 3. Jul 6, 2016
CHANGELOG.md Update changelog. Apr 26, 2016
LICENSE-MIT Tidy up license & package.json. Apr 6, 2015
README.md
package.json chore(package): update ava to version 0.17.0 Nov 24, 2016

README.md

postcss-discard-empty Build Status NPM version Dependency Status

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

Thanks goes to these wonderful people (emoji key):


Ben Briggs

💻 📖 👀 ⚠️


💻

Duncan Beevers

💻 ⚠️

Stephen Way

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © Ben Briggs

You can’t perform that action at this time.