don't cache source maps in service worker

This commit is contained in:
Nolan Lawson 2018-03-16 22:12:04 -07:00
parent ed0db17ca0
commit cefd107af3
1 changed files with 1 additions and 0 deletions

View File

@ -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