Browse Source

update umi config by setting polyfill to IE11 and enable dynamicImport

pull/2075/merge
afc163 8 years ago
parent
commit
f9a06d9f68
  1. 4
      .gitignore
  2. 3
      config/config.js

4
.gitignore

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

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

Loading…
Cancel
Save