Change to minifyCss.

Fixes #535
This commit is contained in:
Chuck Horton
2015-11-24 07:06:47 -08:00
committed by Sam Saccone
parent cb31ef92e5
commit 34c5b58336
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ var styleTask = function(stylesPath, srcs) {
.pipe($.changed(stylesPath, {extension: '.css'}))
.pipe($.autoprefixer(AUTOPREFIXER_BROWSERS))
.pipe(gulp.dest('.tmp/' + stylesPath))
.pipe($.cssmin())
.pipe($.minifyCss())
.pipe(gulp.dest(dist(stylesPath)))
.pipe($.size({title: stylesPath}));
};
@@ -80,7 +80,7 @@ var optimizeHtmlTask = function(src, dest) {
})))
// Concatenate and minify styles
// In case you are still using useref build blocks
.pipe($.if('*.css', $.cssmin()))
.pipe($.if('*.css', $.minifyCss()))
.pipe(assets.restore())
.pipe($.useref())
// Minify any HTML

View File

@@ -9,7 +9,6 @@
"gulp-autoprefixer": "^3.1.0",
"gulp-cache": "^0.4.0",
"gulp-changed": "^1.0.0",
"gulp-cssmin": "^0.1.7",
"gulp-gh-pages": "^0.5.4",
"gulp-html-extract": "^0.0.3",
"gulp-if": "^2.0.0",
@@ -18,6 +17,7 @@
"gulp-jscs-stylish": "^1.1.2",
"gulp-jshint": "^1.6.3",
"gulp-load-plugins": "^1.1.0",
"gulp-minify-css": "^1.2.1",
"gulp-minify-html": "^1.0.2",
"gulp-minify-inline": "^0.1.1",
"gulp-rename": "^1.2.0",