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
parent
78fb207ed2
commit
b3f1f93b1b
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue