aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraeno <just.raeno@gmail.com>2018-12-13 23:35:27 +0100
committerraeno <just.raeno@gmail.com>2018-12-13 23:35:27 +0100
commitc5042c07ef864e0fe1bd8728915fc2dfc191cbec (patch)
tree32ee6da0a56a79b6eec18d6754938e142db4cd39
parent107596339c3f89309c087678c110c5aad1ba1b42 (diff)
Prevent html-minifier to remove placeholder comment in index.html template
-rw-r--r--build/webpack.prod.conf.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js
index c02f8e86..9699f221 100644
--- a/build/webpack.prod.conf.js
+++ b/build/webpack.prod.conf.js
@@ -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
},