gulp-cssnano
    Overview
    Issues
    Find an Expert
    Code
    Documentation
    Insights & Analysis
    Dependencies
    Career Opportunities
    Alternatives
    Versions
    Playground

gulp-cssnano

Minify CSS with cssnano.

2.1.3  •  Published 1 years ago  •  by Ben Briggs  •  MIT License

gulp-cssnano Build Status NPM version Dependency Status

Minify CSS with cssnano.

Install

With npm do:

npm install gulp-cssnano --save-dev

Example

var gulp = require('gulp');
var cssnano = require('gulp-cssnano');

gulp.task('default', function() {
    return gulp.src('./main.css')
        .pipe(cssnano())
        .pipe(gulp.dest('./out'));
});

Source Maps

gulp-cssnano supports gulp-sourcemaps:

var gulp = require('gulp');
var cssnano = require('gulp-cssnano');
var sourcemaps = require('gulp-sourcemaps');

gulp.task('default', function () {
    return gulp.src('main.css')
        .pipe(sourcemaps.init())
        .pipe(cssnano())
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest('./out'));
});

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Ben Briggs

Dependencies

Tags

cssnano
minify
minification
optimise
optimisation
css
gulpplugin
postcss
Get an open source license report with a click
Whether it's for legal, customers or investors, upload your package.json files, and get a comprehensive license report page and spreadsheet. No hassle, it just works!
$49 one time fee, money back guarantee

Popularity

Weekly Downloads
49.5K
Stars
269

Issues and PRs

Activity

Last ver 1 year ago
Created 4 years ago
Last commit 1 year ago
1 month between commits

Sustainability

7 contributors

Technology

Node version: 8.9.4
6K unpacked

Legal and Compliance

MIT License
OSI Approved
0 vulnerabilities

Top Experts

Ben Briggs
Maintainer, 29 commits, 4 merges
Callum Macrae
1 commits, 1 PRs
Works at SamKnows
Mathias Rangel Wulff
1 commits, 1 PRs
greenkeeperio-bot
1 commits, 18 PRs
Works at greenkeeperio
Stefan Lundström
1 commits, 1 PRs
Charles Samborski
1 commits, 1 PRs