gulp-cssmin

minify css using gulp

gulp-cssmin

Duplicate of gulp-minify-css

minify css using gulp.

Install with npm

npm install --save-dev gulp-cssmin
var gulp = require('gulp');
var cssmin = require('gulp-cssmin');
 
gulp.task('default', function () {
    gulp.src('src/**/*.css')
        .pipe(cssmin())
        .pipe(rename({suffix: '.min'}))
        .pipe(gulp.dest('dist'));
});

See the css-min options.

  • Show loging

showLog : (True, false) to trun on or off of the log

  • https://github.com/sindresorhus/gulp-imagemin

  • https://github.com/gruntjs/grunt-contrib-cssmin

MIT @chilijung