question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A simple way to help create-react-app work with less ?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
DanielBadancommented, Feb 27, 2018

less This is what my usage with less looks like, hope it helps.

0reactions
ryouakicommented, Sep 18, 2018

I had make a npm package for create-react-app work with less. react-less-watcher

It works like node-sass-chokidar.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found