chore config

This commit is contained in:
Baorong Li
2021-04-13 16:11:45 +08:00
parent 12eab5f5c7
commit f3c6ccf7b2
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -15,7 +15,7 @@ const config: IConfig = {
publicPath: isDevelopment ? '/' : 'https://cdn.antd-admin.zuiidea.com/',
hash: true,
ignoreMomentLocale: true,
targets: { ie: 9 },
targets: { ie: 11 },
dynamicImport: {},
theme,
proxy,
@@ -44,6 +44,9 @@ const config: IConfig = {
chainWebpack: (memo) => {
memo.module.rule('po').test(/\.po$/).use('po').loader('@lingui/loader')
},
// 快速刷新功能 https://umijs.org/config#fastrefresh
fastRefresh: {},
esbuild: {},
}
export default config
+1
View File
@@ -41,6 +41,7 @@
"@lingui/macro": "^3.8.2",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"@umijs/plugin-esbuild": "^1.2.0",
"@umijs/preset-react": "^1.8.0",
"babel-eslint": "^10.0.0",
"babel-plugin-dev-expression": "^0.2.1",