3

I use Brackets as my text editor. How can I compile and convert my LESS code into CSS?

The following is a link from where I downloaded the LESS compiler but I don't know how to convert my code into CSS.

https://github.com/jdiehl/brackets-less-autocompile

TylerH
  • 20,799
  • 66
  • 75
  • 101
Chirag Bhansali
  • 1,900
  • 1
  • 15
  • 22

1 Answers1

6

You can install less-autocompile extension directly in Brackets using the second icon at the right of the editor. (I guess you are using last version of Brackets).

By default, when you save a less file, it will look for every .less file and compile them to .css files. If you want to produce a single .css file, you'll have to add lines at the top of your less files.

Rictus
  • 112
  • 1
  • 8
  • Will this work? – Chirag Bhansali Nov 23 '16 at 14:00
  • 1
    You have two solutions. 1. You compile your .less files into .css files and in your index.html you provide your css files with markup 2. You add the script you show me above in your index.html, you provide your .less files with markup and the compilation will happen when someone open index.html – Rictus Nov 23 '16 at 14:11