-
Notifications
You must be signed in to change notification settings - Fork 3
/
.webpackrc.js
38 lines (35 loc) · 1.02 KB
/
.webpackrc.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
export default {
"extraBabelPlugins": [
// ["import", { "libraryName": "antd-mobile", "libraryDirectory": "es", "style": true },'antd-mobile'],
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true },'antd'],
],
disableCSSModules: true,
hash:true,
"alias":{
"LoopringJS":`loopring.js/lib`,
"LoopringUI":`${__dirname}/src/common/loopringui/`,
"common":`${__dirname}/src/common`,
"modules":`${__dirname}/src/modules`,
"mobile":`${__dirname}/src/dex`,
},
"theme": {
// "@font-family-no-number" : "Roboto ,PingFang SC",
// "@font-family" : "@font-family-no-number",
"@primary-color": "#C59949",
"@link-color": "#1c60ff",
"@border-radius-base": "0px",
"@line-height-base" : 1.6,
"@normal-color" :"#eee",
"@border-color-base" : "hsv(0, 0, 90%)",
},
"html": {
"template": "./public/index.ejs",
"favicon": './src/assets/images/favicon.ico'
},
sass:{},
env: {
development: {
extraBabelPlugins: ['dva-hmr'],
},
},
}