Minify CSS with CSSO.
If you have any difficulties with the output of this plugin, please use the CSSO tracker.
With npm do:
npm install gulp-csso --save-dev
var gulp = ;var csso = ;gulp;gulp;
For backwards compatibility it can also be a
boolean. In this case, the
inverted value is set to
The default is to use structure minimization for maximum compression.
false instead if you want to disable this feature.
Default: depends on input file has a source map or not
Specify this to generate source map; by default a source map is generated only
if the input file has a source map. Pass
true to ensure that the source map
is generated or
false to disable this.
Alternatively, you can enable source maps support using gulp-sourcemaps:
var gulp = ;var csso = ;var sourcemaps = ;gulp;
true or a positive number (greater number for more details) to get some
debugging information about the minification process.
Usage data for advanced optimisations (read more in the CSSO documentation).
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
MIT © Ben Briggs