diff --git a/templates/service-worker.js b/templates/service-worker.js index 09de8cf5..67e075c5 100644 --- a/templates/service-worker.js +++ b/templates/service-worker.js @@ -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