Fix to new style-system not minifying output.

The new style updates were not minifying their final output. This fixes
that issue. We are keeping minification in the HTML task too in case
folks are still using build blocks.
master
Addy Osmani 2014-08-28 17:13:09 +01:00
parent 78fb207ed2
commit b3f1f93b1b
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,8 @@ gulp.task('styles', function () {
)
.pipe($.autoprefixer(AUTOPREFIXER_BROWSERS))
.pipe(gulp.dest('.tmp/styles'))
// Concatenate And Minify Styles
.pipe($.if('*.css', $.csso()))
.pipe(gulp.dest('dist/styles'))
.pipe($.size({title: 'styles'}));
});
@ -123,6 +125,7 @@ gulp.task('html', function () {
]
})))
// Concatenate And Minify Styles
// In case you are still using useref build blocks
.pipe($.if('*.css', $.csso()))
.pipe(assets.restore())
.pipe($.useref())