Fix for Workbox precaching way too many files

This commit is contained in:
Jason Miller
2018-04-17 14:08:23 -04:00
parent 411614b731
commit dec93a724f

View File

@@ -241,6 +241,12 @@ module.exports = function (_, env) {
swDest: 'sw.js', swDest: 'sw.js',
clientsClaim: true, clientsClaim: true,
skipWaiting: 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: // allow for offline client-side routing:
navigateFallback: '/', navigateFallback: '/',
navigateFallbackBlacklist: [/\.[a-z0-9]+$/i] navigateFallbackBlacklist: [/\.[a-z0-9]+$/i]