parent
3af23e496f
commit
9adbdcd693
|
@ -54,7 +54,7 @@
|
|||
"webpack": "^4.42.0",
|
||||
"webpack-bundle-analyzer": "^3.7.0",
|
||||
"webpack-cli": "^3.1.2",
|
||||
"workbox-webpack-plugin": "^3.6.0",
|
||||
"workbox-webpack-plugin": "^6.0.2",
|
||||
"worker-loader": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -76,11 +76,11 @@ module.exports = {
|
|||
new WorkboxPlugin.GenerateSW({
|
||||
clientsClaim: true,
|
||||
skipWaiting: true,
|
||||
cacheId: process.env.HEAD,
|
||||
swDest: 'sw.js',
|
||||
navigateFallback: '/fallback',
|
||||
navigateFallbackWhitelist: [/^\/[^_]+$/], // fallback for anything that doesn't start with
|
||||
navigateFallbackBlacklist: [
|
||||
// The service worker should ignore source maps generated by Webpack
|
||||
navigateFallbackDenylist: [
|
||||
/^\/_.*$/,
|
||||
/.*\.map$/,
|
||||
/.*\?s=.*$/,
|
||||
/.*\.worker\.js/,
|
||||
|
|
Loading…
Reference in New Issue