Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14325 reviews 1707 hosting providers

Questions & Answers

Compiling multiple .less files into one .css file

Mar 22, 2013 by deepa1
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?

2 Answers

0 votes
Mar 22, 2013 by FixHost
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 votes
Mar 22, 2013 by TopNet