A simple way to help create-react-app work with less ?
See original GitHub issueI read the User Guide about Adding a CSS Preprocessor (Sass, Less etc.), but it did not say anything about how to use less with create-react-app.
Less is very popular in china, if I do eject and add less-loader into webpack config file, I will get trouble when I want to upgrade react-scripts.
So I implemented A tool to help me about what node-sass-chokidar do at the User Guide. But I still want create-react-app have a way could let it work like less-loader. it can give us the best development experience.
Could you add a feature like plugins, user can add some items in package.json and let react-scripts work with less or sass like Configuring a WebSocket Proxy
e.g.(package.json)
{
"css": {
"preprocess": "less"
}
}
My english is not good enough 😦
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Using LESS with create-react-app without Ejecting
1. Create a basic app using CRA · 2. · 3. Updating package.json · 4. Override Webpack config · 5. Using less loader,...
Read more >Freedom from create-react-app (How to ... - Level Up Coding
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >How to create a React App without create-react-app - Medium
Prerequisites: ; 2. Create index.html under /dist folder ; 3. Then you'd want to ; Package.json ; 4. Create .babelrc ; 5. Create...
Read more >Create a react app without create-react-app - Innominds
Transform syntax; Polyfill features that are missing in your target environment; Source code transformations (codemods). A simple example of ...
Read more >Create Apps with No Configuration – React Blog
Create React App is a new officially supported way to create single-page React applications. It offers a modern build setup with no ...
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 FreeTop 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
Top GitHub Comments
This is what my usage with less looks like, hope it helps.
I had make a npm package for create-react-app work with less. react-less-watcher
It works like node-sass-chokidar.