From a2a8ae4bf7d3b106023cc09f2259a33de2e49c33 Mon Sep 17 00:00:00 2001 From: Andrey Kuzmin Date: Fri, 1 May 2015 02:25:32 +0200 Subject: [PATCH] #36 simplify postcss call --- index.js | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index bedc0bc..88135b3 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,6 @@ module.exports = function (processors, options) { // Source map is disabled by default var opts = { map: false } var attr - var processor = postcss() // Extend default options if (options) { @@ -42,8 +41,7 @@ module.exports = function (processors, options) { opts.map = { annotation: false } } - processors.forEach(processor.use.bind(processor)) - processor + postcss(processors) .process(file.contents, opts) .then(handleResult, handleError) diff --git a/package.json b/package.json index f02af52..f0364c4 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/postcss/gulp-postcss", "dependencies": { "gulp-util": "^3.0.4", - "postcss": "^4.1.7", + "postcss": "^4.1.8", "vinyl-sourcemaps-apply": "^0.1.4" }, "devDependencies": {