Merge pull request #1274 from betagouv/bug-split-testing

🐛 répare le service worker lors des split testing netlify
pull/1276/head
Johan Girod 2020-12-07 14:29:06 +01:00 committed by GitHub
commit 9bc80e4158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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