tonix-gulp-html-autoprefixer
Version:
Gulp plugin to Autoprefix all CSS inside an HTML page - CSS inside style tags and inside style attributes. Uses tonix-html-autoprefixer under the hood.
20 lines (14 loc) • 404 B
JavaScript
;
var htmlAutoprefixer = require("tonix-html-autoprefixer");
var es = require("event-stream");
module.exports = function () {
return es.map(function (file, done) {
var htmlString = file.contents.toString();
var prefixed = htmlAutoprefixer.process(htmlString);
file.contents = new Buffer(prefixed);
next();
function next(err) {
done(err, file);
}
});
};