forked from shinysatellite/react_cheddar_up_admin-hmi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-overrides.js
45 lines (43 loc) · 1.11 KB
/
config-overrides.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
const {
addWebpackAlias,
disableEsLint,
override,
useBabelRc,
fixBabelImports,
addLessLoader,
} = require('customize-cra');
module.exports = {
webpack: override(
disableEsLint(),
useBabelRc(),
addWebpackAlias({
'lodash-es': 'lodash',
}),
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: {
'border-radius-base': '4px',
'body-background': '#FBFBFD',
'highlight-color': '#F36D36',
'layout-body-background': '#ffffff',
'layout-header-background': '#ffffff',
'layout-header-height': '70px',
'layout-header-padding': '0 30px',
'layout-sider-background': '#373737',
'menu-bg': '#373737',
'menu-item-color': '#ffffff',
'menu-item-font-size': '17px',
'menu-icon-size': '16px',
'menu-item-active-bg': '#257a91',
'menu-highlight-color': '#ffffff',
'menu-item-active-border-width': '0',
'table-header-bg': '#ffffff',
},
}),
),
};