jokul
jokul

Reputation: 1339

Have web essentials compile all less files

I want to allow web essentials to compile several less files at once in a specified order. I have worked in the past having gruntjs perform this action but if web essentials can be set up to do this that would make it significantly easier for me.

Upvotes: 0

Views: 1490

Answers (1)

Colin Bacon
Colin Bacon

Reputation: 15609

When you say

compile several less files at once in a specified order

If you mean compiling several less files into one, the usual way to do that is with @import in your main less file.

@import bacon.less;
@import smokey.less;

Web Essentials will then compile this for you, in the order you have them. Either on save or on build, depending on your configuration. Web Essentials will also minify this if you set it to.

All the less features in Web Essentials can be found here.

Upvotes: 1

Related Questions