Single-file-output LESS compiler for Broccoli
The broccoli-less-single plugin compiles
.less files with
This plugin is designed to compile a single, primary input file
into a single output file, with a tree of
@importd dependencies. This
differs from broccoli-less,
which compiles each
.less file individually into a
.css file and doesn't
@imports or a single output file depending on multiple inputs.
This code is based heavily on broccoli-sass
npm install --save-dev broccoli-less-single
var compileLess = ;var outputTree =
inputTrees: An array of trees that act as the include paths for
less. If you have a single tree, pass
inputFile: Relative path of the main
.less file to compile. This
file must exist in one of the
outputFile: Relative path of the output CSS file.
options: A hash of options for less.
var appCss =
/* file: sub.less *//* =================== *//* file: app.less */;
A sample project using bootstrap and broccoli-less-single can be found here.
// Brocfile.jsvar Funnel = ;var compileLess = ;var mergeTrees = ;var app = 'app';var less =moduleexports = ;