-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.roadhogrc.js
51 lines (40 loc) · 1.01 KB
/
.roadhogrc.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
49
50
51
const path = require('path');
const svgSpriteDirs = [
path.resolve(__dirname, 'src/svg/'),
require.resolve('antd').replace(/index\.js$/, '')
];
export default {
entry: 'src/index.js',
svgSpriteLoaderDirs: svgSpriteDirs,
"theme": "./theme.config.js",
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
["import", { "libraryName": "antd", "style": true }]
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd", "style": true}]
]
}
}
}
/*
// 接口代理示例
"proxy": {
"/api/v1": {
"target": "http://api.zuiidea.com",
"changeOrigin": true,
"pathRewrite": { "^/api/v1" : "/v1" }
},
"/api/v2": {
"target": "http://192.168.0.110",
"changeOrigin": true,
"pathRewrite": { "^/api/v2" : "/api/v2" }
}
},
*/