less-plugin-variables-output
Adds output of all top-level variables to a JSON file
Install plugin
npm install --save-dev less-plugin-variables-output
Command line usage (lessc)
lessc --variables-output <input.less> <output.css>
lessc --variables-output=customFilename.json <input.less> <output.css>
Programmatic usage
const less = ;const VariablesOutput = ; less;
Testing
npm test