Closed RohimChou closed 5 months ago
I used it like this
plugins: [
{
plugin: CracoAntDesignPlugin,
options: {
customizeTheme: {
'@primary-color': '#1DA57A'
},
/*lessLoaderOptions: {
modifyVars: {
'@primary-color': '#1DA57A'
},
strictMath: true,
noIeCompat: true,
},*/
//cssLoaderOptions: {
// modules: true,
// localIdentName: "[local]_[hash:base64:5]",
//},
babelPluginImportOptions: {
libraryDirectory: "es",
},
}
},
]
@RohimChou
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
"@primary-color": "#ff0000"
},
noIeCompat: true
},
}
},
Put the noIeCompat: true
in lessOptions
. This will work.
I'm trying to override the antd less variable
Follow through the instruction from README, however this error occurred while running npm start:
I've try to get rid of this error for a while, can anyone shed me some light...
Steps to reproduce:
Thanks in advance!!