@adamwood/gulp-cssmin
v0.2.1
Published
minify css using gulp
Downloads
1,029
Readme
gulp-cssmin
Duplicate of gulp-minify-css
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
https://github.com/sindresorhus/gulp-imagemin
https://github.com/gruntjs/grunt-contrib-cssmin
License
MIT @chilijung