universal-web-template
Version:
An universal web proejct template - let you quickly set up a project using Handlebars, sass and ReactJS for front-end templating. It can be adopted with most modern CMS.
31 lines (23 loc) • 544 B
JavaScript
/* jshint node: true */
/*
deploy:styles Task
Copy and minify css files into deploy directory
*/
;
var cleanCSS = require('gulp-clean-css'),
size = require('gulp-size');
module.exports = function() {
var source = this.opts.config.compile.styles,
dest = this.opts.config.build.styles;
return this.gulp.src([
this.opts.path.join(source, '/*.css'),
])
.pipe(cleanCSS({
keepSpecialComments: 0
}))
.pipe(size({
showFiles: true,
title: 'css file -'
}))
.pipe(this.gulp.dest(dest));
};