-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.roadhogrc.js
41 lines (40 loc) · 952 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
35
36
37
38
39
40
41
const path = require('path')
const baseBabelPlugin = [
'transform-runtime',
'transform-decorators-legacy',
["module-resolver", {
"alias": {
"components": "./src/components",
"config": "./src/config",
"images": "./src/images",
"routes": "./src/routes",
"utils": "./src/utils"
}
}]
]
/**
* roadhog config
* more options please see https://github.com/sorrycc/roadhog
* make webpack config easily, it is also stand 'webpack.config.js'
*/
export default {
'entry': 'src/index.js',
'disableCSSModules': true,
'hash': true,
'autoprefixer': {
'browsers': [
'iOS >= 8', 'Android >= 4', 'IE>=10'
]
},
"ignoreMomentLocale": true,
'env': {
'development': {
'extraBabelPlugins': baseBabelPlugin.concat('dva-hmr'),
},
'production': {
// 'publicPath': '',
'extraBabelPlugins': baseBabelPlugin
}
},
publicPath: 'http://p2hfdzdsp.bkt.clouddn.com/fe'
}