Prevent html-minifier to remove placeholder comment in index.html template

This commit is contained in:
raeno 2018-12-13 23:35:27 +01:00
parent 107596339c
commit c5042c07ef

View File

@ -58,7 +58,8 @@ var webpackConfig = merge(baseWebpackConfig, {
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
removeAttributeQuotes: true,
ignoreCustomComments: [/server-generated-meta/]
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},