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 = require'broccoli-less-single';var outputTree = compileLessinputTrees inputFile outputFile options
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
.lessfile 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 = compileLesssourceTrees 'myapp/app.less' 'assets/app.css'
/* file: sub.less *//* =================== *//* file: app.less */;