Skip to content

Commit

Permalink
chore: replace gulp-minify-css with gulp-cssnano
Browse files Browse the repository at this point in the history
  • Loading branch information
t1st3 committed Jan 19, 2016
1 parent 24e6828 commit 67685df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ qrcode = require('qrcode-terminal'),
gulp = require('gulp'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
minifyCSS = require('gulp-minify-css'),
cssnano = require('gulp-cssnano'),
spriteBuilder = require( 'node-spritesheet' ).Builder;

/*
Expand Down Expand Up @@ -47,7 +47,7 @@ gulp.task('sprite', ['build_clean'], function (cb) {
});
builder.build(function() {
gulp.src('./dist/sprite/' + pkg.name + '.css')
.pipe(minifyCSS({keepSpecialComments: '*'}))
.pipe(cssnano())
.pipe(rename(pkg.name + '.min.css'))
.pipe(gulp.dest('./dist/sprite'));
cb();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"chalk": "~1.1",
"del": "~2.2.0",
"gulp": "~3.9",
"gulp-cssnano": "^2.1.0",
"gulp-imagemin": "~2.4.0",
"gulp-minify-css": "~1.2.3",
"gulp-rename": "~1.2",
"node-spritesheet": "~0.4",
"qrcode-terminal": "~0.10",
Expand Down

0 comments on commit 67685df

Please sign in to comment.