Skip to content

Commit

Permalink
Added autoprefixer after the CSS compilation
Browse files Browse the repository at this point in the history
geelen committed Aug 10, 2014

Verified

This commit was signed with the committer’s verified signature. The key has expired.
addaleax Anna Henningsen
1 parent f3961d1 commit cb5af22
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lib/stylesheet/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var path = require("path")
var fs = require("fs")
var helpers = require('../helpers')
var path = require("path")
var fs = require("fs")
var helpers = require('../helpers')
var autoprefixer = require('autoprefixer')

/**
* Build Processor list for stylesheets.
@@ -52,8 +53,13 @@ module.exports = function(root, filePath, callback){
/**
* Lookup Directories
*/
var render = processors[ext].compile(srcPath, dirs, data, callback)
var render = processors[ext].compile(srcPath, dirs, data, function(err, css) {
if (err) return callback(err);

var prefixed = autoprefixer.process(css).css;
callback(null, prefixed);
})

})

}
}

0 comments on commit cb5af22

Please sign in to comment.