🐛 répare le service worker lors des split testing netlify

fix #1269
pull/1274/head
Johan Girod 2020-12-07 11:28:21 +01:00
parent 3af23e496f
commit 9adbdcd693
3 changed files with 1032 additions and 205 deletions

View File

@ -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": {

View File

@ -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/,

1229
yarn.lock

File diff suppressed because it is too large Load Diff