forked from Jadeite2/umi-antd-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.js
41 lines (39 loc) · 1.02 KB
/
.umirc.js
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
38
39
40
41
const path = require('path');
const server = 'http://localhost:3000';
// ref: https://umijs.org/config/
export default {
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: true,
dynamicImport: false,
dll: true,
routes: {
exclude: [
/model\.(j|t)sx?$/,
/service\.(j|t)sx?$/,
/models\//,
/components\//,
/services\//,
]
},
hardSource: false,
}],
],
alias:{
components:path.resolve(__dirname,'src/components'),
utils:path.resolve(__dirname,'src/utils'),
services:path.resolve(__dirname,'src/services'),
models:path.resolve(__dirname,'src/models'),
// themes:path.resolve(__dirname,'src/themes'),
images:path.resolve(__dirname,'src/assets')
},
// proxy: {
// "/api": {
// "target": 'http://192.168.2.120:8081',
// "changeOrigin": true,
// "pathRewrite": { "^/api" : "/api" }
// }
// }
}