Prevent html-minifier to remove placeholder comment in index.html template
This commit is contained in:
parent
107596339c
commit
c5042c07ef
@ -58,7 +58,8 @@ var webpackConfig = merge(baseWebpackConfig, {
|
|||||||
minify: {
|
minify: {
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
removeAttributeQuotes: true
|
removeAttributeQuotes: true,
|
||||||
|
ignoreCustomComments: [/server-generated-meta/]
|
||||||
// more options:
|
// more options:
|
||||||
// https://github.com/kangax/html-minifier#options-quick-reference
|
// https://github.com/kangax/html-minifier#options-quick-reference
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user