forked from mycard/moecube-accounts-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.roadhogrc.js
34 lines (31 loc) · 820 Bytes
/
.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
let publicPath = 'https://cdn01.moecube.com/accounts/';
const API_ROOT = {
development: 'https://api.moecube.com/accounts',
test: 'http://114.215.243.95:8082',
production: 'https://api.moecube.com/accounts'
};
let defineConf = {
apiRoot: API_ROOT[process.env['ENV']],
};
export default {
'entry': 'src/index.js',
publicPath,
define: { ...defineConf },
'env': {
'development': {
'extraBabelPlugins': [
'dva-hmr',
'transform-runtime',
'babel-plugin-transform-decorators-legacy',
['import', { 'libraryName': 'antd', 'style': 'css' }]
]
},
'production': {
'extraBabelPlugins': [
'babel-plugin-transform-decorators-legacy',
'transform-runtime',
['import', { 'libraryName': 'antd', 'style': 'css' }]
]
}
}
};