18 lines
500 B
JavaScript
18 lines
500 B
JavaScript
![]() |
const {injectBabelPlugin} = require('react-app-rewired');
|
||
|
const rewireLess = require('react-app-rewire-less');
|
||
|
|
||
|
module.exports = function override(config, env) {
|
||
|
config = injectBabelPlugin(
|
||
|
['import', {libraryName: 'antd', style: true}],
|
||
|
config,
|
||
|
); // change importing css to less
|
||
|
config = rewireLess.withLoaderOptions({
|
||
|
modifyVars: {
|
||
|
//'@primary-color': '#95ddcf',
|
||
|
'@font-family': 'Barlow',
|
||
|
'@grid-gutter-width': 15,
|
||
|
},
|
||
|
})(config, env);
|
||
|
return config;
|
||
|
};
|