From 107596339c3f89309c087678c110c5aad1ba1b42 Mon Sep 17 00:00:00 2001 From: raeno Date: Thu, 13 Dec 2018 22:29:07 +0100 Subject: [PATCH 1/2] Add placeholder to insert server generated metatags. Related to #430 --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index f0872ec9..d8defc2e 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ Pleroma + From c5042c07ef864e0fe1bd8728915fc2dfc191cbec Mon Sep 17 00:00:00 2001 From: raeno Date: Thu, 13 Dec 2018 23:35:27 +0100 Subject: [PATCH 2/2] Prevent html-minifier to remove placeholder comment in index.html template --- build/webpack.prod.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 },