.webpackrc.js
1.76 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
export default {
"entry": {
index: "./src/index.js",
"vendor": [
"react",
"react-dom",
"dva",
"prop-types",
"lodash",
"classnames"
],
"antd": [
"antd/lib/button",
"antd/lib/icon",
"antd/lib/breadcrumb",
"antd/lib/form",
"antd/lib/menu",
"antd/lib/input",
"antd/lib/input-number",
"antd/lib/dropdown",
"antd/lib/table",
"antd/lib/tabs",
"antd/lib/modal",
"antd/lib/row",
"antd/lib/col"
],
"components":[
"./src/components/Common/CommonComponent"
]
},
"disableCSSModules": false,
"publicPath": "/",
"hash": true,
"extraBabelPlugins": [
["import", { "libraryName": "antd"}, "pc"],
["import", { "libraryName": "antd-mobile", "style": true }, "mobile"]
],
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr", "dynamic-import-node"
],
},
"dllPlugin": {
"exclude": [
"babel-runtime",
"roadhog"
],
"include": [
"dva/router",
"dva/saga",
"dva/fetch"
]
}
},
"commons": [
{
"names": ["vendor", "antd", "components"],
"minChunks": "Infinity"
}
],
"lessLoaderOptions": {
"javascriptEnabled": true
},
"theme": {
"@primary-color": "#1890FF",
"@link-color": "#1890FF",
"@table-header-bg": '#e6e6e6',
"@disabled-bg": '#fff',
"@table-border-color": '#AAA',
"@border-color-split": '#AAA',
"@font-family": "Monospaced Number, Chinese Quote, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif",
},
"html": { "template": "./src/index.ejs" }
}