gulp-clean-css
npm package of node.js
This is a plugin for gulp which is used to minify the css files.
var gulp = require('gulp');
var cleanCss = require('gulp-clean-css');
// name of the task is : gulp.min.css
gulp.task('mincss', function() {
return gulp.src('source/*.css') //add your custom source here
.pipe(cleanCss({compatibility: 'ie8'}))
.pipe(gulp.dest('./css')); //destination folder comes here
});
$gulp mincss