From 17f618b03376077f47c9cb0bee425df318255672 Mon Sep 17 00:00:00 2001 From: Sushain Cherivirala Date: Sun, 27 Jun 2021 10:21:52 -0700 Subject: [PATCH] Fix cache break query param replacement --- build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ts b/build.ts index 9737cc0e3..0f62ce335 100755 --- a/build.ts +++ b/build.ts @@ -166,7 +166,7 @@ const Plugin = { path.join(outdir, 'index.html'), indexHtml .replace('{{PRELOADED_STRINGS}}', JSON.stringify({ [defaultLocale]: defaultStrings })) - .replace('{{CACHE_BREAK}}', Date.now().toString()), + .replace(/{{CACHE_BREAK}}/g, Date.now().toString()), ), ...localeStrings.map(([locale, strings]) => fs.writeFile(