From: Shuanglei Tao Date: Sun, 6 May 2018 10:19:12 +0000 (+0800) Subject: webpack: minify html for production X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=aca17f165f409e5e5700a58a651eea6609715e3b;p=ttyd.git webpack: minify html for production --- 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