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: [
new HtmlWebpackPlugin({
minify: {
removeComments: true,
collapseWhitespace: true,
},
inlineSource: '.(js|css)$',
template: 'index.html',
}),