Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#36 simplify postcss call #37

Merged
merged 1 commit into from
May 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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