forked from cybrespace/pinafore
don't cache source maps in service worker
This commit is contained in:
parent
ed0db17ca0
commit
cefd107af3
|
@ -4,6 +4,7 @@ const ASSETS = `cache${timestamp}`
|
|||
// `shell` is an array of all the files generated by webpack,
|
||||
// `assets` is an array of everything in the `assets` directory
|
||||
const toCache = __shell__.concat(__assets__)
|
||||
.filter(filename => !filename.endsWith('.map'))
|
||||
const cached = new Set(toCache)
|
||||
|
||||
// `routes` is an array of `{ pattern: RegExp }` objects that
|
||||
|
|
Loading…
Reference in New Issue