-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-overrides.js
39 lines (38 loc) · 1.14 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
/* eslint-disable react-hooks/rules-of-hooks */
/* eslint-disable no-param-reassign */
/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const {
override,
addDecoratorsLegacy,
disableEsLint,
addLessLoader,
useBabelRc,
addWebpackAlias,
} = require('customize-cra');
module.exports = {
// The Webpack config to use when compiling your react app for development or production.
webpack: override(
useBabelRc(),
addDecoratorsLegacy(),
disableEsLint(),
addLessLoader({
javascriptEnabled: true,
modifyVars: {
'@primary-menu-color': '#7638ff',
'@primary-menu-background-color': 'rgba(118, 56, 255, 0.05)',
'@darker-color': 'rgba(0,0,0,0.85)',
'@dark-color': 'rgba(0,0,0,0.65)',
'@light-color': 'rgba(0,0,0,0.45)',
'@layout-header-background': '#FFFFFF',
'@font-family': 'PingFang SC',
'@card-shadow': '0px 10px 20px 0px rgba(151,151,151,0.12)',
'@border': 'solid 1px rgba(0,0,0,0.1)',
'@border-radius-base': '4px',
},
}),
addWebpackAlias({
['@']: path.resolve(__dirname, 'src'),
}),
),
};