You have a directory (colour-scheme/
) containing .less
(each defining a different colour scheme). For each of those files (call it scheme-x.less
), compile it with the "core" .less
file(s) (stored elsewhere) to create style-x.css
.
Preferably, by adding a .less
file to colour-scheme/
directory and running a grunt task, the appropriate style-?.css
should be created. That is, no editing of Gruntfile.js is required.
Directory layout is below.
Building off of kaiser's contrib-less/contrib-concat implementation, here is one way in which you can resolve the problem dynamically (turns out I was wrong about using a multitask - doing so causes the task to fail as it requires explicit configuration properties for each individual target. Regular custom tasks don't test the Grunt environment before executing, and thus don't fail as a result of missing target configs):