Procházet zdrojové kódy

update umi config by setting polyfill to IE11 and enable dynamicImport

afc163 před 7 roky
rodič
revize
f9a06d9f68
2 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 2 2
      .gitignore
  2. 2 1
      config/config.js

+ 2 - 2
.gitignore

@@ -28,11 +28,11 @@ jsconfig.json
 *.log
 
 functions/mock
-.temp/**
+.temp
 
 # umi
 .umi
 .umi-production
 
 # screenshot
-screenshot
+screenshot

+ 2 - 1
config/config.js

@@ -17,7 +17,8 @@ export default {
           default: 'zh-CN', // default zh-CN
           baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default
         },
-        polyfills: ['ie9'],
+        dynamicImport: true,
+        polyfills: ['ie11'],
         ...(!process.env.TEST && require('os').platform() === 'darwin'
           ? {
               dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],