-
Notifications
You must be signed in to change notification settings - Fork 1
/
.roadhogrc.js
62 lines (41 loc) · 1.01 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
49
50
51
52
53
54
55
56
57
/**
* Created by dixu on 2017/5/19.
*/
import pxtorem from 'postcss-pxtorem';
const path = require('path');
const svgSpriteDirs = [
require.resolve('antd-mobile').replace(/warn\.js$/, ''), // antd-mobile 内置svg
path.resolve(__dirname, 'src/assets/icon-core'), // 业务代码本地私有 svg 存放目录
];
export default {
"entry": "src/index.js",
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
["import", { "libraryName": "antd-mobile", "style":true }]
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd-mobile", "style":true }]
]
}
},
"autoprefixer": {
"browsers": [
"iOS >= 8", "Android >= 4"
]
},
extraPostCSSPlugins: [
pxtorem({
rootValue: 100,
propWhiteList: [],
}),
],
svgSpriteLoaderDirs: svgSpriteDirs,
// 配置主题 暂时屏蔽 需要配置打开
// "theme": "./theme.js"
}