-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.js
48 lines (46 loc) · 984 Bytes
/
.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
42
43
44
45
46
47
48
import { join } from 'path';
import routes from './src/routes';
// ref: https://umijs.org/config/
export default {
define:{
},
treeShaking: true,
alias: {
'@': join(__dirname, 'src'),
},
proxy: {
'/v1': {
target: 'http://localhost:9527',
changeOrigin: true,
pathRewrite: { '^/v1': '/v1' },
},
},
routes,
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: {
dynamicImport: true,
hmr: true
},
links: [{ rel: 'icon', href: '/favicon.ico' }],
dynamicImport: { webpackChunkName: true },
title: 'finance_tool',
dll: false,
routes: {
exclude: [
/components\//,
/model\.(j|t)sx?$/,
/components\.(j|t)sx?$/,
/service\.(j|t)sx?$/,
/models\//,
/services\//
],
},
}],
],
cssLoaderOptions:{
// localIdentName:'[local]'
}
}