Compiling multiple .less files into one .css file

563 views
asked Mar 22, 2013 in General by deepa1 (1,580 points)
Hello all

How can I compile multiple .less files into one .css file inside a template? I have 4 .less files and I want to compile them all into one .css file for my template. Does anyone have any idea how to do this?
thanks

2 Answers

0 like 0 dislike
answered Mar 22, 2013 by FixHost (12,380 points)
Compiling multiple less files is the same as compiling one less file. Simply compile the less file which reference all the other less files. First you need to include the less files in one using @import “filename.less”;
 Using the @import statements makes the compiler loads all the less files and then outputs the result to one single css file.
0 like 0 dislike
answered Mar 22, 2013 by TopNet (10,360 points)
...