forked from giljong/cms-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
32 lines (31 loc) · 944 Bytes
/
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
const { override, fixBabelImports } = require('customize-cra');
const addLessLoader = require('customize-cra-less-loader');
module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
}),
addLessLoader({
lessLoaderOptions: {
lessOptions: {
modifyVars: {
'@primary-color': '#0E6EB8',
'@label-color': '#333333',
'@text-color': '#333333',
'@link-color': '#0E6EB8',
'@menu-dark-inline-submenu-bg': '@primary-color',
'@layout-sider-background': '@primary-color',
'@menu-dark-bg': '@primary-color',
'@menu-dark-item-active-bg':
"color(~`colorPalette('@{primary-color}', 5) `);",
//Input
'@input-color': '#333333',
// pageHeader
'@page-header-padding': '0px',
},
javascriptEnabled: true,
},
},
}),
);