diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 881a93442..a7a493d20 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -147,6 +147,17 @@ gulp.task('html', () => { removeStyleLinkTypeAttributes: true, removeOptionalTags: true }))) + .pipe($.if('*.html', $.minifyInline({ + js: { + output: { + comments: false + } + }, + css: { + keepSpecialComments: 1 + }, + cssSelector: 'style[data-do-not-minify!="true"]' + }))) // Output files .pipe($.if('*.html', $.size({title: 'html', showFiles: true}))) .pipe(gulp.dest('dist'));