-
Notifications
You must be signed in to change notification settings - Fork 0
/
.roadhogrc.js
48 lines (47 loc) · 1.05 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
// import Path from 'path';
import PxToRem from 'postcss-pxtorem';
export default {
hash: true,
entry: 'src/index.js',
disableCSSModules: false,
ignoreMomentLocale: true,
autoprefixer: {
browsers: [
'iOS >= 8',
'Android >= 4'
]
},
define:{ APIHOST: 'http://api.laystall.top/' },
// svgSpriteLoaderDirs: [
// require.resolve('antd-mobile').replace(/warn\.js$/, '') // antd-mobile 内置svg
// // path.resolve(__dirname, 'src/my-project-svg-foler') // 业务代码本地私有 svg 存放目录
// ],
// extraPostCSSPlugins: [
// PxToRem({
// rootValue: 100,
// propWhiteList: [],
// }),
// ],
extraBabelPlugins: [
'transform-runtime',
"transform-decorators-legacy",
"transform-class-properties",
['import', {
libraryName: 'antd-mobile',
style: true
}]
],
env: {
production: {
multipage: true,
publicPath: '/'
},
development: {
multipage: false,
publicPath: '/',
extraBabelPlugins: [
'dva-hmr'
]
}
}
};