Fixes #253 - correctly minify styles

master
Addy Osmani 2014-07-07 13:07:57 +01:00
parent 2b99126d1f
commit 773d577d61
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,6 @@ gulp.task('html', function () {
.pipe($.useref.assets({searchPath: '{.tmp,app}'}))
// Concatenate And Minify JavaScript
.pipe($.if('*.js', $.uglify({preserveComments: 'some'})))
// Concatenate And Minify Styles
.pipe($.if('*.css', $.csso()))
// Remove Any Unused CSS
// Note: If not using the Style Guide, you can delete it from
// the next line to only include styles your project uses.
@ -129,6 +127,8 @@ gulp.task('html', function () {
/.app-bar.open/
]
})))
// Concatenate And Minify Styles
.pipe($.if('*.css', $.csso()))
.pipe($.useref.restore())
.pipe($.useref())
// Update Production Style Guide Paths