Comments (1)
Hi, I fixed this error:
// Don't open the browser during development
process.env.BROWSER = "none";
module.exports = {
plugins: [
{
plugin: require('craco-less'), // Enable less support.
},
{
plugin: require('craco-less'), // Enable less support with CSS module.
options: {
modifyLessRule: function (lessRule, _context) {
lessRule.test = /\.(module)\.(less)$/;
lessRule.exclude = /node_modules/;
return lessRule;
},
cssLoaderOptions: {
modules: {
localIdentName: "[hash]",
}
}
}
}
]
};
from craco-less.
Related Issues (20)
- Modify Less module rule for all files in a directory HOT 2
- craco 7 with official react-scripts v5 support has been released HOT 4
- Migrate from craco-less-plugin HOT 2
- [3.x]The engine "yarn" is incompatible with this module. Expected version ">= 3.6". Got "1.22.19" HOT 6
- When installing `craco-less`, is it more appropriate to install it as a development dependency? HOT 2
- Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema HOT 2
- Browser console less positioning is inaccurate
- module.less not work HOT 6
- when i use craco-less and craco-sass-resources-loader together, it reported wrong HOT 4
- Getting error that craco-less needs to be updated HOT 7
- Can't install with craco@6 HOT 5
- Does it not work with custom value for NODE_ENV?
- Error evaluating function `unit`: the first argument to unit must be a number HOT 2
- Omit error option HOT 1
- Is it possible to realize automatic recognition of css modules
- Can't find 'file-loader' issue with react-scripts 5.0.0 HOT 9
- craco-less 2.0.0 requires react-scripts 5 but that's incompatible with craco 6.4.3 HOT 7
- MiniCssExtractPlugin config not work
- Can't use craco-less with craco v7.0.0-alpha.3 HOT 5
- Find loaders path-separator agnostically HOT 2
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-less.