A Broccoli plugin that compiles a single primary LESS input file into a single CSS output file, handling @import dependencies. Current stable version is 2.0.1 (last release February 2017). It uses less.js under the hood and focuses on single-file output, unlike broccoli-less which compiles each LESS file individually. Key differentiator: supports imports and produces one output CSS file from multiple input files via LESS imports. The plugin is in maintenance mode with no recent updates.
npm install broccoli-less-singleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use broccoli-less-single with broccoli-funnel and broccoli-merge-trees to compile a single LESS file to CSS with caching.
Do not rely on side effects on the options object; pass a fresh object each time.
Use alternative solutions that are actively maintained.
Use require() or dynamic import.
Wrap a single node in an array: compileLess([node], ...).
Use relative paths like 'assets/app.css'.
Ensure you have installed 'broccoli-less-single' and require it correctly: const compileLess = require('broccoli-less-single');Use const compileLess = require('broccoli-less-single');Wrap the node in an array: compileLess([node], ...)