postcss-filter-plugins
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,3 +1,8 @@ | ||
# 1.0.1 | ||
* Fixes an integration issue with cssnano & cssnext, caused by processors that | ||
do not expose a `postcssPlugin` property. | ||
# 1.0.0 | ||
* Initial release. |
@@ -58,2 +58,6 @@ 'use strict'; | ||
var name = plugin.postcssPlugin; | ||
if (typeof name === 'undefined') { | ||
position++; | ||
return; | ||
} | ||
if (~list.indexOf(name)) { | ||
@@ -60,0 +64,0 @@ if (!silent) { |
{ | ||
"name": "postcss-filter-plugins", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Exclude/warn on duplicated PostCSS plugins.", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"test-unformatted": "babel-tape-runner \"src/**/__tests__/*.js\"", | ||
"test": "npm run test-unformatted | faucet" | ||
"test": "npm run test-unformatted | tap-spec" | ||
}, | ||
@@ -25,4 +25,4 @@ "files": [ | ||
"babel-tape-runner": "^1.1.0", | ||
"faucet": "0.0.1", | ||
"postcss-minify-font-weight": "^1.0.1", | ||
"tap-spec": "^4.1.0", | ||
"tape": "^4.0.0" | ||
@@ -29,0 +29,0 @@ }, |
@@ -9,5 +9,5 @@ # [postcss][postcss]-filter-plugins [![Build Status](https://travis-ci.org/postcss/postcss-filter-plugins.svg?branch=master)][ci] | ||
```console | ||
$ npm install postcss-filter-plugins --save | ||
``` | ||
npm install postcss-filter-plugins --save | ||
``` | ||
@@ -32,6 +32,11 @@ ## Example | ||
var css = 'h1 { foo: 1 }'; | ||
var out = postcss([ filter(), counter(), counter() ]).process(css).css; | ||
var out = postcss([ | ||
filter(), | ||
counter(), | ||
counter() | ||
]).process(css).css; | ||
console.log(out); | ||
// => h1 { foo: 2 } | ||
// Note that you will get a PostCSS warning in the message registry | ||
``` | ||
@@ -48,5 +53,5 @@ | ||
Type: `string` | ||
Default: `both` | ||
Default: `'both'` | ||
Pass `forward`, `backward`, or `both` to customise the direction in which the | ||
Pass `'forward'`, `'backward'`, or `'both'` to customise the direction in which the | ||
plugin will look in the plugins array. See the [tests] for examples on how this | ||
@@ -70,3 +75,3 @@ works. | ||
postcss([ filter({ | ||
exclude: ['autoprefixer'] | ||
exclude: ['postcss-cssstats'] | ||
}) ]).process(css).css); | ||
@@ -73,0 +78,0 @@ ``` |
8068
91
125