Skip to content

Commit

Permalink
Fix cache break query param replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
sushain97 committed Jun 27, 2021
1 parent 0579660 commit 17f618b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 17f618b

Please sign in to comment.