webpack: minify html for production

This commit is contained in:
Shuanglei Tao
2018-05-06 18:19:12 +08:00
parent 2201a174fe
commit aca17f165f
2 changed files with 5 additions and 45 deletions

View File

@@ -19,6 +19,10 @@ module.exports = merge(config, {
}, },
plugins: [ plugins: [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
minify: {
removeComments: true,
collapseWhitespace: true,
},
inlineSource: '.(js|css)$', inlineSource: '.(js|css)$',
template: 'index.html', template: 'index.html',
}), }),

46
src/index.html vendored

File diff suppressed because one or more lines are too long