From e6eb7544af5d58920bd58dbe65f335c09b72cbc9 Mon Sep 17 00:00:00 2001 From: Harsimar Singh Date: Sun, 1 Jul 2018 18:04:09 +0530 Subject: [PATCH 1/2] Ability to minify internal JS and CSS. --- gulpfile.babel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}))) From 90863e5ecd20c0ba8f41c3146185e1f67dc11979 Mon Sep 17 00:00:00 2001 From: Harsimar Singh Date: Sun, 1 Jul 2018 18:16:55 +0530 Subject: [PATCH 2/2] Added gulp-clean-css! --- package.json | 1 + 1 file changed, 1 insertion(+) 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",