Commit 952910a8 authored by Michael Henretty's avatar Michael Henretty

Merge branch 'kenrick95-gulp-postcss'

parents 9f1cd533 a88b9a7f
......@@ -64,9 +64,15 @@ function getVendorJS() {
}
function compileCSS() {
var cleanCSS = require('gulp-clean-css');
var postcss = require('gulp-postcss');
var cssnext = require('postcss-cssnext');
var cssnano = require('cssnano');
var plugins = [
cssnext({browsers: ['last 2 versions']}),
cssnano()
];
return gulp.src(PATH_CSS)
.pipe(cleanCSS())
.pipe(postcss(plugins))
.pipe(gulp.dest(DIR_DIST));
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment