-
Notifications
You must be signed in to change notification settings - Fork 44
/
.umirc.ts
37 lines (36 loc) · 774 Bytes
/
.umirc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from 'umi';
import { resolve } from 'path';
export default defineConfig({
title: '管理平台业务模版',
hash: true,
antd: {},
dva: {
hmr: true,
},
locale: {
// default zh-CN
default: 'zh-CN',
// default true, when it is true, will use `navigator.language` overwrite default
antd: true,
baseNavigator: true,
},
// 是否启用按需加载
// dynamicImport: {},
// 设置 node_modules 目录下依赖文件的编译方式
nodeModulesTransform: {
type: 'none',
},
// targets: {
// ie: 11,
// },
theme: {
'@primary-color': '#1DA57A',
},
proxy: {
'/api': {
target: 'http://128.1.1.1:8010/',
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
},
});