Browse Source

Fix bug (#3749)

将./src/defaultSettings.js中pwa设置false时,‘umi-plugin-react’中pwa配置项的值应该是false;使用空对象{}依旧会开启 PWA 相关功能。
yaphet 6 years atrás
parent
commit
bffa637984
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/config.js

+ 1 - 1
config/config.js

@@ -33,7 +33,7 @@ const plugins = [
               importWorkboxFrom: 'local',
             },
           }
-        : {},
+        : false,
       ...(!TEST && os.platform() === 'darwin'
         ? {
             dll: {