postcss-discard-empty
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,5 @@ | ||
# 1.1.1 | ||
* Tweaks for compatibility with the plugin guidelines. | ||
# 1.1.0 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "postcss-discard-empty", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Discard empty rules and values with PostCSS.", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "jshint index.js --reporter node_modules/jshint-stylish/stylish.js", | ||
"lint": "jshint index.js --reporter node_modules/jshint-stylish/index.js", | ||
"test": "tape test.js | tap-spec" | ||
}, | ||
"keywords": [ | ||
"compress", | ||
"css", | ||
"comments", | ||
"empty", | ||
"minify", | ||
"optimisation", | ||
"postcss", | ||
"postcss-plugins" | ||
"postcss-plugin" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"postcss": "^4.1.2" | ||
"postcss": "^4.1.13" | ||
}, | ||
"devDependencies": { | ||
"jshint": "^2.6.3", | ||
"jshint-stylish": "^1.0.1", | ||
"tap-spec": "^2.2.2", | ||
"tape": "^3.5.0" | ||
"jshint": "^2.8.0", | ||
"jshint-stylish": "^2.0.1", | ||
"tap-spec": "^4.0.2", | ||
"tape": "^4.0.0" | ||
}, | ||
@@ -32,6 +35,3 @@ "homepage": "https://github.com/ben-eb/postcss-discard-empty", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/ben-eb/postcss-discard-empty.git" | ||
} | ||
"repository": "ben-eb/postcss-discard-empty" | ||
} |
@@ -5,4 +5,6 @@ # [postcss][postcss]-discard-empty [![Build Status](https://travis-ci.org/ben-eb/postcss-discard-empty.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-discard-empty.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-discard-empty.svg)][deps] | ||
Install via [npm](https://npmjs.org/package/postcss-discard-empty): | ||
## Install | ||
With [npm](https://npmjs.org/package/postcss-discard-empty) do: | ||
``` | ||
@@ -14,14 +16,25 @@ npm install postcss-discard-empty --save | ||
```js | ||
var postcss = require('postcss') | ||
var empty = require('postcss-discard-empty'); | ||
For more examples see the [tests](test.js). | ||
var css = '@font-face; h1 {} {color:blue} h2 {color:} h3 {color:red}'; | ||
console.log(postcss(empty()).process(css).css); | ||
### Input | ||
// => 'h3 {color:red}' | ||
```css | ||
@font-face; | ||
h1 {} | ||
{color:blue} | ||
h2 {color:} | ||
h3 {color:red} | ||
``` | ||
For more examples see the [tests](test.js). | ||
### Output | ||
```css | ||
h3 {color:red} | ||
``` | ||
## Usage | ||
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for | ||
examples for your environment. | ||
## Contributing | ||
@@ -34,3 +47,3 @@ | ||
MIT © Ben Briggs | ||
MIT © [Ben Briggs](http://beneb.info) | ||
@@ -37,0 +50,0 @@ [ci]: https://travis-ci.org/ben-eb/postcss-discard-empty |
Sorry, the diff of this file is not supported yet
3961
51
Updatedpostcss@^4.1.13