-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.roadhogrc.js
73 lines (68 loc) · 1.93 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
const path = require('path')
const pxtorem = require('postcss-pxtorem');
const svgSpriteDirs = [
require.resolve('antd-mobile').replace(/warn\.js$/, ''), // antd-mobile 内置svg
path.resolve(__dirname, 'src/my-project-svg-foler'), // 业务代码本地私有 svg 存放目录
]
export default {
entry: 'src/index.js',
svgSpriteLoaderDirs: svgSpriteDirs,
"theme": "./theme.config.js",
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
["import", { "libraryName": "antd-mobile", "style": true }]
],
extraPostCSSPlugins: [
pxtorem({
rootValue: 100,
propWhiteList: [],
}),
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd-mobile", "style": true}]
],
extraPostCSSPlugins: [
pxtorem({
rootValue: 100,
propWhiteList: [],
}),
]
}
},
"proxy": {
/*"/opm": {
"target": "https://dev-lawaid-opm-api.fabaogd.com",
"changeOrigin": true,
"secure": false
/*,
"pathRewrite": { "^/api/v1" : "" }
},*/
"/rp": {
"target": "http://120.78.71.239:5002",
// "target": "http://192.168.26.200:5002",
"changeOrigin": true,
"secure": false,
"pathRewrite": { "^/api/v1" : "" }
},
"/oss": {
"target": "http://120.78.71.239:5002",
// "target": "http://192.168.26.200:5002",
"changeOrigin": true,
"secure": false,
"pathRewrite": { "^/api/v1" : "" }
},
"/upload": {//This is for upload attachments to ali cloud.
"target": "http://bestone-lawaid-zhj.oss-cn-shenzhen.aliyuncs.com",
// "target": "http://bestone-lawaid-zhj.oss-cn-hangzhou.aliyuncs.com",
"changeOrigin": true,
"secure": false,
"pathRewrite": {'^/upload' : ''}
}
}
}