forked from external-repos/squoosh
Fix for Workbox precaching way too many files
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user