-
Notifications
You must be signed in to change notification settings - Fork 17
/
.webpackrc.js
36 lines (35 loc) · 934 Bytes
/
.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
export default {
entry : "./panel/index.js",
disableCSSModules : true,
ignoreMomentLocale : true,
theme : {
"@primary-color": "#2A72FF",
"@text-color": "#999",
"@heading-color": "#999",
"@border-color-base":"rgba(100,100,100,.3)",
"@input-bg":"rgba(255,255,255,.03)",
"@input-placeholder-color":"rgba(100,100,100,.5)"
},
html : {
"template": "./panel/index.ejs"
},
define : {
"$dirname": __dirname,
"$isDev" : process.env.NODE_ENV === "development"
},
extraBabelPlugins : [
'lodash',
['import', {libraryName: 'antd', libraryDirectory: 'es', style: true}]
],
env : {
development: {
extraBabelPlugins: [
"dva-hmr",
["babel-plugin-styled-components", { displayName: true }]
]
},
production : {
browserslist : ['iOS >= 8', 'Android >= 4'],
}
}
};