From bffa6379848f72bcae6d00666cf78c4973846582 Mon Sep 17 00:00:00 2001 From: yaphet Date: Sun, 17 Mar 2019 07:44:16 +0800 Subject: [PATCH] Fix bug (#3749) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将./src/defaultSettings.js中pwa设置false时,‘umi-plugin-react’中pwa配置项的值应该是false;使用空对象{}依旧会开启 PWA 相关功能。 --- config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.js b/config/config.js index 9317a5b3..934569dc 100644 --- a/config/config.js +++ b/config/config.js @@ -33,7 +33,7 @@ const plugins = [ importWorkboxFrom: 'local', }, } - : {}, + : false, ...(!TEST && os.platform() === 'darwin' ? { dll: { -- GitLab