You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
809 B
33 lines
809 B
const { whenProd } = require('@craco/craco'); |
|
const CracoLessPlugin = require('craco-less'); |
|
module.exports = { |
|
babel: { |
|
plugins: [ |
|
...whenProd( |
|
() => [['transform-remove-console', { exclude: ['error'] }]], |
|
[], |
|
), |
|
], |
|
}, |
|
plugins: [ |
|
{ |
|
plugin: CracoLessPlugin, |
|
options: { |
|
lessLoaderOptions: { |
|
lessOptions: { |
|
javascriptEnabled: true, |
|
modifyVars: { |
|
'@primary-color': '#0b9585', //主题色 |
|
'@breadcrumb-last-item-color': '#0b9585', //面包屑最后一个字体颜色 |
|
'@footer-bar-color': '#b1dbd8', //表单页底部提交栏 |
|
'@tr-event-color': '#ebf6f5', //表格偶数行颜色 |
|
'@table-header-bg': '#B6DFDB', |
|
'@table-header-color': '#333', |
|
'@table-row-hover-bg': 'none', |
|
}, |
|
}, |
|
}, |
|
}, |
|
}, |
|
] |
|
};
|
|
|