From dec93a724f716a749dddf537ea9286ac766362de Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 17 Apr 2018 14:08:23 -0400 Subject: [PATCH] Fix for Workbox precaching way too many files --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index b48f3dae..1b5c41fb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -241,6 +241,12 @@ module.exports = function (_, env) { swDest: 'sw.js', clientsClaim: true, skipWaiting: true, + exclude: [ + 'report.html', + 'manifest.json', + /(report\.html|manifest\.json|\.precache-manifest\..*\.json)$/, + /\.(?:map|pem|DS_Store)$/ + ], // allow for offline client-side routing: navigateFallback: '/', navigateFallbackBlacklist: [/\.[a-z0-9]+$/i]