-
Notifications
You must be signed in to change notification settings - Fork 1
/
.roadhogrc.js
47 lines (43 loc) · 1.12 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
let publicPath = 'https://cdn01.moecube.com/console/';
const API_ROOT = {
development: 'http://localhost:8001',
test: 'http://114.215.243.95:8001',
production: 'https://api.moecube.com/console'
};
const RETURN_SSO = {
development: `http://localhost:8000/loginCallback`,
test: `http://localhost:8000/loginCallback`,
production: `https://moecube.com/console/loginCallback`
};
const BASENAME = {
development: ``,
test: ``,
production: '/console'
}
let defineConf = {
BASENAME: BASENAME[process.env['ENV']],
apiRoot: API_ROOT[process.env['ENV']],
returnSSO: RETURN_SSO[process.env['ENV']]
};
export default {
publicPath,
"entry": "src/index.js",
define: defineConf,
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
"babel-plugin-transform-decorators-legacy",
["import", {"libraryName": "antd", "style": "css"}]
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
"babel-plugin-transform-decorators-legacy",
["import", {"libraryName": "antd", "style": "css"}]
]
}
}
}