1

I was trying to use create-react-app to start with react. I wanted to add LESS pre-processor in my app. In the documentation, it is only mentioned about SASS to use node-sass-chokidar.

What to use for LESS?

Aju John
  • 2,214
  • 1
  • 10
  • 27
  • 1
    If _less_ is installed globally, you should be able to use _lessc_ for the the _build-css_ and _watch-css_ tasks in your _package.json_ – Patrick Hund Aug 23 '18 at 09:38
  • 1
    Or do a _yarn add less_. The problem is, though, it's more complicated to set up the _build-css_ and _watch-css_ jobs, because the command line API of Less is not very user friendly. See related: https://stackoverflow.com/questions/5691173/how-do-i-compile-a-directory-full-of-less-css-files-to-css – Patrick Hund Aug 23 '18 at 09:54

0 Answers0