-
Notifications
You must be signed in to change notification settings - Fork 46
/
.roadhogrc.js
48 lines (47 loc) · 1.07 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: {
'process.env.NODE_ENV': (process.env.NODE_ENV === 'production') ? 'production' : 'development'
},
// 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',
['import', {
libraryName: 'antd-mobile',
style: true
}]
],
env: {
production: {
multipage: true,
publicPath: '/dva-antd-mobile-starter/'
},
development: {
multipage: false,
publicPath: '/',
extraBabelPlugins: [
'dva-hmr'
]
}
}
};