3.0.2 • Published 4 years ago

less-plugin-variables-export v3.0.2

Weekly downloads
15
License
MIT
Repository
github
Last release
4 years ago

less-plugin-variables-export

Adds output of all (not only top-level) variables to a JSON file

Install plugin

npm install --save-dev less-plugin-variables-export

Command line usage (lessc)

lessc --variables-export <input.less> <output.css>

Variables will be stored in the <input.json> file.

lessc --variables-export=./node_modules/semantic-ui-less/definitions:./node_modules/semantic-ui-less/themes/default <input.less> <output.css>

It should simplify the output when using Semantic UI library.

Programmatic usage

const less = require('less');
const VariablesExport = require('less-plugin-variables-export');

less.render(<css>, {
	plugins: [
		new VariablesExport({
			paths: './node_modules/semantic-ui-less/definitions'
		})
	]
});

Testing

npm test
3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago