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.
This commit is contained in:
David Négrier 2021-03-05 10:00:11 +01:00
parent bf8e8bf777
commit 15405633d1
3 changed files with 4 additions and 3 deletions

View File

@ -1 +1,2 @@
index.html index.html
index.tmpl.html.tmp

View File

@ -2,7 +2,7 @@
set -x set -x
set -o nounset errexit set -o nounset errexit
template_file_index=dist/index.tmpl.html 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 tmp_trackcodefile=/tmp/trackcode
# To inject tracking code, you have two choices: # To inject tracking code, you have two choices:

View File

@ -39,7 +39,7 @@ module.exports = {
plugins: [ plugins: [
new HtmlWebpackPlugin( new HtmlWebpackPlugin(
{ {
template: './dist/index.tmpl.html', template: './dist/index.tmpl.html.tmp',
minify: { minify: {
collapseWhitespace: true, collapseWhitespace: true,
keepClosingSlash: true, keepClosingSlash: true,