Skip to content

Commit

Permalink
Fix to new style-system not minifying output.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
addyosmani committed Aug 28, 2014
1 parent 78fb207 commit b3f1f93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'}));
});
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit b3f1f93

Please sign in to comment.