Compile LESS file into CSS Bootstrap 3

CodeTrooper picture CodeTrooper · Jul 4, 2014 · Viewed 16.6k times · Source

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?

Answer

cvrebert picture cvrebert · Jul 5, 2014
  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