From aca17f165f409e5e5700a58a651eea6609715e3b Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 6 May 2018 18:19:12 +0800 Subject: [PATCH] webpack: minify html for production --- html/webpack.prod.js | 4 ++++ src/index.html | 46 +------------------------------------------- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/html/webpack.prod.js b/html/webpack.prod.js index 24c4660..0bf8988 100644 --- a/html/webpack.prod.js +++ b/html/webpack.prod.js @@ -19,6 +19,10 @@ module.exports = merge(config, { }, plugins: [ new HtmlWebpackPlugin({ + minify: { + removeComments: true, + collapseWhitespace: true, + }, inlineSource: '.(js|css)$', template: 'index.html', }), diff --git a/src/index.html b/src/index.html index f6e8825..b2b4558 100644 --- a/src/index.html +++ b/src/index.html @@ -1,45 +1 @@ - - - - - - ttyd - Terminal - - - -
- - - - +ttyd - Terminal
\ No newline at end of file -- 2.43.4