6

I have a LESS file which I want to compile to use as my bootstrap theme. How can I compile it? Is there a place where I can do this?

The less FILE comes from http://bootswatchr.com/ but when I click the link get CSS and choose either minified version or complete version, nothing happens.

I have the LES file from the left pane, is there a way I can still compile it?

CodeTrooper
  • 1,890
  • 6
  • 32
  • 54

3 Answers3

23
  1. Install node.js
  2. Install the Less compiler: npm install -g less
  3. Run the Less compiler on your Less source to produce CSS: lessc your-source.less > output.css More info: http://lesscss.org/#using-less
cvrebert
  • 9,075
  • 2
  • 38
  • 49
1

If you are using WebStrom IDE, then it has a plugin for LESS to compile. I have been using the plugin to compile the LESS over a year.

jeewan
  • 1,597
  • 5
  • 23
  • 40
0

If you want software, then I would recommend SimpLESS. You can use it on OSX/Win. It has drag and drop support which is nice and will tell you if your syntax is wrong. It also updates to support the latest LESS version.

Aibrean
  • 6,297
  • 1
  • 22
  • 38
  • 1
    Today, SimpLESS is deprecated. They stopped to update their software so now the new features provided by Less (1.4) are unrecognized. – AnthonyR Oct 21 '15 at 08:34
  • I would assume most people on here would recognize the post date and do some research :) Bootstrap is getting rid of native LESS anyway with B4. – Aibrean Oct 21 '15 at 12:58
  • It was just to inform because I tried, it's a pity because SimpLESS was a great software. – AnthonyR Oct 21 '15 at 13:01