mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Fix for Workbox precaching way too many files
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user