V
V
vezan2018-11-04 20:13:00
Less
vezan, 2018-11-04 20:13:00

Problem with compiling less. How to solve the problem?

I’m just starting to get interested in preprocessors, but right from the start a problem arose, the solution of which didn’t occur to me at all, and Google didn’t shine with special erudition here either. When compiling the main.less file, Koala writes Success to me with approval and automatically creates the main.css file, where the code should be compiled, but the fact is that this does not happen. Not a single line of code written in less was transferred to css. Autocompilation is enabled.
Maybe I'm doing something wrong? I will describe my steps step by step:

  1. I create a project structure from css, img, js, less, libs folders
  2. I create index.html; main.less in less folder
  3. I launch the koala and drop the less folder into the interface window
  4. Tick ​​"Auto Compilation"
  5. I click on "compile"
  6. I write any elementary code in main.less and check for changes in main.css
  7. I don't understand why nothing works.

PS I also tried to compile via prepros , it gives the error "unexpected token in json at position=0", and in the logs it says Error:unable to process File less/main.less: unknown error .
What could be the solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2018-11-04
@vezan

Gulp/Editor Add-on (eg Brackets → Less Autocompile)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question