From cefd107af3adcf54075c283e0ba9e371a99fb06e Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 16 Mar 2018 22:12:04 -0700 Subject: [PATCH] don't cache source maps in service worker --- templates/service-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/service-worker.js b/templates/service-worker.js index 09de8cf..67e075c 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