cssnano

A modular minifier, built on top of the PostCSS ecosystem.

Installation

npm install --save-dev cssnano postcss

Configuration

const gulp = require('gulp');
const postcss = require('gulp-postcss');
const cssnano = require('cssnano');

gulp.task('css', function () {
    return gulp.src('./src/*.css')
        .pipe(postcss([cssnano()]))
        .pipe(gulp.dest('./dest'));
});