瀏覽代碼

update umi config by setting polyfill to IE11 and enable dynamicImport

afc163 7 年之前
父節點
當前提交
f9a06d9f68
共有 2 個文件被更改,包括 4 次插入3 次删除
  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'],