소스 검색

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'],