gulp-postcss
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -24,2 +24,3 @@ var Stream = require('stream') | ||
var attr | ||
var processor = postcss() | ||
@@ -43,3 +44,4 @@ // Extend default options | ||
try { | ||
postcss(processors) | ||
processors.forEach(processor.use.bind(processor)) | ||
processor | ||
.process(file.contents, opts) | ||
@@ -46,0 +48,0 @@ .then(handleResult, handleError) |
{ | ||
"name": "gulp-postcss", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "PostCSS gulp plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -75,2 +75,5 @@ # gulp-postcss [](https://travis-ci.org/w0rm/gulp-postcss) | ||
* 5.0.1 | ||
* Fix to support object processors | ||
* 5.0.0 | ||
@@ -77,0 +80,0 @@ * Use async API |
@@ -13,3 +13,3 @@ /* global it, Promise */ | ||
var stream = postcss( | ||
[ asyncDoubler, doubler ] | ||
[ asyncDoubler, objectDoubler() ] | ||
) | ||
@@ -129,1 +129,7 @@ | ||
} | ||
function objectDoubler () { | ||
var processor = require('postcss')() | ||
processor.use(doubler) | ||
return processor | ||
} |
9353
155
114