Skip to content

Commit

Permalink
Merge pull request #37 from postcss/simplify-postcsss-execution
Browse files Browse the repository at this point in the history
#36 simplify postcss call
  • Loading branch information
w0rm committed May 1, 2015
2 parents b622661 + a2a8ae4 commit 768f4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 768f4f6

Please sign in to comment.