How do I compile a directory full of less css files to css?

ocoutts picture ocoutts · Apr 17, 2011 · Viewed 44.5k times · Source

I have a directory full of less css files. What is the best way to compile them to normal css? (for deployment)

Id like to run a command as follows:

lessc -r less/ css/

where lessc is the less compiler (installed via node package manager)

Answer

Damian picture Damian · Jul 16, 2013

The way to do this is what bootstrap does - have a file which imports all the others and compile that.

@import "variables.less"; 
@import "mixins.less";