Support `css-loader@^3.0.0` (+ `addLessLoader`)
See original GitHub issueAs part of the 1.0
release, we need to support css-loader@^3.0.0
which was added to create-react-app
in #7876.
Currently we have merged #185 into the next
branch (published as customize-cra@next
), which should support the new css-loader
configuration format, but I’m not familiar enough with how users consume css-loader
/less-loader
to know how best to support this.
I am looking for help testing customize-cra@next
regarding this change and feedback on how addLessLoader
is implemented. Specifically, #185 changes the value of localIdentName
and does not provide a way to override other parts of the modules
object, such as getLocalIdent
.
What do we need for this to work well for most users?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (1 by maintainers)
Top Results From Across the Web
customize-cra-less-loader - npm
Add less loader to any create-react-app using customize-cra . Support with css-loader v3. Only support react-scripts version >= v5.0.0 .
Read more >How to use the customize-cra.addLessLoader function ... - Snyk
To help you get started, we've selected a few customize-cra.addLessLoader examples, based on popular ways it is used in public projects.
Read more >How to add less-loader to react-app-rewired config?
it worked with: module.exports = function override(config, env) { config.module.rules[1].oneOf.splice(2, 0, { test: /\.less$/i, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
use customize-cra@next and lessOption works well.
yes, for now i installed
"css-loader": "2.1.1"
until the fix is made, and works great