gulp-cssnano
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

gulp-cssnano

Minify CSS with cssnano.

2.1.3  •  Published 2 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

We are hiring frontend and backend developers!
Come and help us build the ultimate open source directory 🔥

Popularity

Weekly Downloads
49.5K
Stars
269

Maintenance

Development

Last ver 2 years ago
Created 5 years ago
Last commit 2 years ago
1 month between commits

Technology

Node version: 8.9.4
6K unpacked

Legal and Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

7 contributors
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

Tags

cssnano
minify
minification
optimise
optimisation
css
gulpplugin
postcss
© 2019 Devstore, Inc.
Devstore helps developers find and use open-source packages, so they can focus on building amazing things