Comments (2)
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
"@primary-color": "#ff0000"
},
noIeCompat: true
},
}
},
Put the noIeCompat: true
in lessOptions
. This will work.
from craco-antd.
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",
},
}
},
]
from craco-antd.
Related Issues (20)
- Unable to use custom vars in .less root file HOT 1
- Media queries in customizeTheme
- Not able to install craco-antd, with CRA 4 (npm 8 and node 16.x) and using "@craco/craco": "^6.4.5", HOT 2
- craco 7 with official react-scripts v5 support has been released HOT 3
- Does craco supports antd V5?
- craco test HOT 1
- allow libraryDirectory as option HOT 3
- customizeTheme with files that use JS throws error SyntaxError: Cannot use import statement outside a module
- How to achieve less modules HOT 2
- not support create react app 4.x HOT 3
- Support Craco 6 HOT 2
- Double colon Error HOT 3
- Using Ant Design Variables in Styled Components HOT 2
- Using antd less variables in components HOT 1
- craco-antd and react-scripts 5.0.0 HOT 5
- craco-less TypeError: Cannot read property 'push' of undefined HOT 10
- Influence the order/priority of antd css imports HOT 1
- react-scripts 5 and npm 7 HOT 2
- error in webpack5 "Invalid configuration object."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craco-antd.