gulp-cssnano
Minify CSS with cssnano.
Last updated 2 years 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 (2 years ago)

8 Versions

  • 2.1.3                                ...           2 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 19
This Week 19
This Month 692
Last Day 26
Last Week 397
Last Month 1,519
Dependencies (5)
Dev Dependencies (4)
Dependents (339)

Copyright 2014 - 2017 © taobao.org |