gulp-cssnano
Minify CSS with cssnano.
Last updated a year ago by beneb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-cssnano 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.3                                ...           latest (a year ago)

8 Versions

  • 2.1.3                                ...           a year ago
  • 2.1.2                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 33
This Week 188
This Month 1,056
Last Day 73
Last Week 447
Last Month 1,696
Dependencies (5)
Dev Dependencies (4)
Dependents (320)

Copyright 2014 - 2016 © taobao.org |