From 2111647ab461f1d91e77c92da701e1c400b98608 Mon Sep 17 00:00:00 2001 From: Tristan Date: Mon, 3 Feb 2020 10:58:04 +0800 Subject: [PATCH] build: update workbox setting --- config/webpack.config.prod.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 21a9e3a..03a4c1c 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -59,7 +59,6 @@ module.exports = merge(commonConfig, { new GenerateSW({ clientsClaim: true, exclude: [/\.map$/, /asset-manifest\.json$/, /\.(?:png|jpg|jpeg|svg)$/, /\.js$/], - importWorkboxFrom: 'local', navigateFallback: 'index.html', //定义运行时缓存(可接受多个json对象) runtimeCaching: [ @@ -124,7 +123,7 @@ module.exports = merge(commonConfig, { } } ], - navigateFallbackBlacklist: [ + navigateFallbackDenylist: [ // Exclude URLs starting with /_, as they're likely an API call new RegExp('^/_'), // Exclude any URLs whose last part seems to be a file extension