From 15405633d1c69d1e8f361ce7b3f386b40d62bdf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Fri, 5 Mar 2021 10:00:11 +0100 Subject: [PATCH] Fixing GA tag not included in play domain The GA tag was not properly included because the index.html file that contained it was overwritten by Webpack's HtmlWebpackPlugin. --- front/dist/.gitignore | 3 ++- front/templater.sh | 2 +- front/webpack.config.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/front/dist/.gitignore b/front/dist/.gitignore index 64233a9e..dd1fae3d 100644 --- a/front/dist/.gitignore +++ b/front/dist/.gitignore @@ -1 +1,2 @@ -index.html \ No newline at end of file +index.html +index.tmpl.html.tmp diff --git a/front/templater.sh b/front/templater.sh index 1851cdc5..a5a28c9c 100755 --- a/front/templater.sh +++ b/front/templater.sh @@ -2,7 +2,7 @@ set -x set -o nounset errexit template_file_index=dist/index.tmpl.html -generated_file_index=dist/index.html +generated_file_index=dist/index.tmpl.html.tmp tmp_trackcodefile=/tmp/trackcode # To inject tracking code, you have two choices: diff --git a/front/webpack.config.js b/front/webpack.config.js index 170466ef..bb03c789 100644 --- a/front/webpack.config.js +++ b/front/webpack.config.js @@ -39,7 +39,7 @@ module.exports = { plugins: [ new HtmlWebpackPlugin( { - template: './dist/index.tmpl.html', + template: './dist/index.tmpl.html.tmp', minify: { collapseWhitespace: true, keepClosingSlash: true,