From d54564b75a983f2af083e47ed74b6c47b59e8c48 Mon Sep 17 00:00:00 2001 From: Joe Milazzo Date: Thu, 25 Jan 2024 15:31:17 -0600 Subject: [PATCH] Bugfixes + Potential iOS Webtoon Reader Fix (#2653) --- UI/Web/hash-localization-prime.js | 3 +++ UI/Web/package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 UI/Web/hash-localization-prime.js diff --git a/UI/Web/hash-localization-prime.js b/UI/Web/hash-localization-prime.js new file mode 100644 index 000000000..013d62b56 --- /dev/null +++ b/UI/Web/hash-localization-prime.js @@ -0,0 +1,3 @@ +const fs = require('fs'); + +fs.writeFileSync('./i18n-cache-busting.json', JSON.stringify({})); diff --git a/UI/Web/package.json b/UI/Web/package.json index aff29529a..6e575de39 100644 --- a/UI/Web/package.json +++ b/UI/Web/package.json @@ -7,7 +7,8 @@ "build": "npm run cache-langs && ng build", "minify-langs": "node minify-json.js", "cache-langs": "node hash-localization.js", - "prod": "npm run cache-langs && ng build --configuration production && npm run minify-langs && npm run cache-langs", + "cache-langs-prime": "node hash-localization-prime.js", + "prod": "npm run cache-langs-prime && ng build --configuration production && npm run minify-langs && npm run cache-langs", "explore": "ng build --stats-json && webpack-bundle-analyzer dist/stats.json", "lint": "ng lint", "e2e": "ng e2e"