Skip to content

Craga89/less-plugin-variables-output

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published