SW bits that make it good enough for now

This commit is contained in:
Jake Archibald
2020-09-25 09:38:19 +01:00
parent e11b4cf22c
commit 4d8efcea66
4 changed files with 15 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ export default function serviceWorkerPlugin({
const version = versionHash.digest('hex');
swChunk.code =
`const ASSETS = ${JSON.stringify(urls)};\n` +
`const ASSETS = ${JSON.stringify(urls, null, ' ')};\n` +
`const VERSION = ${JSON.stringify(version)};\n` +
swChunk.code;
},