Minify CSS with CSSO.
If you have any difficulties with the output of this plugin, please use the CSSO tracker.
Installation
Install via npm:
npm install gulp-csso --save-dev
Example
var gulp = require('gulp');
var csso = require('gulp-csso');
gulp.task('default', function() {
return gulp.src('./main.css')
.pipe(csso())
.pipe(gulp.dest('./out'));
});
API
csso(false) or csso()
The default is to use structure minimization for maximum compression. See the CSSO description for more information.
csso(true)
Pass true instead if you want to disable this feature.