diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 881a93442..71359468c 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -145,7 +145,9 @@ gulp.task('html', () => { removeEmptyAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true, - removeOptionalTags: true + removeOptionalTags: true, + minifyCSS: true, + minifyJS: true }))) // Output files .pipe($.if('*.html', $.size({title: 'html', showFiles: true}))) diff --git a/package.json b/package.json index 5670e1edc..27cc935a6 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "gulp-babel": "^6.1.2", "gulp-cache": "^0.4.5", "gulp-concat": "^2.6.0", + "gulp-clean-css": "^3.9.4", "gulp-cssnano": "^2.1.2", "gulp-eslint": "^1.1.1", "gulp-htmlmin": "^2.0.0",