responsive-html-email-signa.../tasks/postcss.js

18 lines
427 B
JavaScript

const gulp = require('gulp');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
function postcssTask(options) {
// Requires: dupe.
gulp.task('postcss', function() {
var processors = [autoprefixer()];
return options
.src(options.workingDir + '/**/*.css')
.pipe(postcss(processors))
.pipe(gulp.dest(options.workingDir));
});
}
module.exports = postcssTask;