Reputation: 26134
In my Node.js application, I am using less-middleware to compile the LESS files into CSS files. Works great with single files:
app.use(require('less-middleware')({ src: path.join(__dirname, '../', '/public/css') }));
However, I was wondering if it were possible to take two source .less
files, and compile (and optinally minify) them into one single .css
file.
Upvotes: 1
Views: 1202
Reputation: 26134
Got it working using @import
:
... LESS code...
... more LESS...
@import "style";
@import "style2";
via Join two .less files into one css file
Upvotes: 2