JSPM

less-plugin-variables-output

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3073
  • Score
    100M100P100Q123551F
  • License MIT

Adds output of all top-level variables to a JSON file

Package Exports

  • less-plugin-variables-output

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (less-plugin-variables-output) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 = require('less');
const VariablesOutput = require('less-plugin-variables-output');

less.render(<css>, {
    plugins: [
        new VariablesOutput({
            filename: 'variables.json'
        })
    ]
});

Testing

npm test