minify css using gulp
JavaScript CSS
Latest commit 0ab02f9 Apr 25, 2015 @chilijung Merge pull request #13 from Bigfork/master
Update to clean-css v3
Permalink
Failed to load latest commit information.
sample fix output Feb 22, 2014
.gitignore update dist Feb 4, 2014
.travis.yml travis build Feb 17, 2014
README.md Update README.md Jun 22, 2014
gulpfile.js fix output Feb 22, 2014
index.js clean-css 3.x compatibility Apr 14, 2015
package.json Caret vs tilde Apr 14, 2015
test.js fix output Feb 22, 2014

README.md

gulp-cssmin

Duplicate of gulp-minify-css

Build Status

minify css using gulp.

Install

Install with npm

npm install --save-dev gulp-cssmin

Example

var gulp = require('gulp');
var cssmin = require('gulp-cssmin');
var rename = require('gulp-rename');

gulp.task('default', function () {
    gulp.src('src/**/*.css')
        .pipe(cssmin())
        .pipe(rename({suffix: '.min'}))
        .pipe(gulp.dest('dist'));
});

API

cssmin(options)

See the css-min options.

Other options

  • Show loging

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

Inspired by

License

MIT @chilijung