From 6de338ad811efcf195a918abcf6dd1d0fb06c508 Mon Sep 17 00:00:00 2001 From: jackfruit2 <96298768+jackfruit2@users.noreply.github.com> Date: Sun, 14 Aug 2022 15:44:10 +0100 Subject: [PATCH] Migrate from Workbox v4 to v5 Based on the upgrade guide for migrating from v4 of workbox I have fixed the braking change introduced by using v5. https://developer.chrome.com/docs/workbox/migration/migrate-from-v4/ --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ed19af1..501d284 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const workboxPlugin = require('workbox-webpack-plugin') const defaultGenerateConfig = { exclude: [/\.map$/, /^(?:asset-)manifest.*\.js(?:on)?$/], navigateFallback: '/index.html', - navigateFallbackBlacklist: [ + navigateFallbackDenylist: [ new RegExp('^/__'), new RegExp('/[^/]+\.[^/]+$'), ],