Consolidate-style engine for rendering .less files.
Install with npm
$ npm i engine-less --save
Less string support. Process the given str of less and invoke the callback callback(err, css).
Params
str {String}options {Object|Function}: or callback.callback {Function}Example
var str = '@red: #900;\n.foo {color: @red;}';
engine.render(str, function (err, css) {
console.log(css);
//=> '.foo {\n color: #990000;\n}\n'
});
Less file support. Process a .less file at the given fp and callback callback(err, css).
Params
filepath {String}options {Object|Function}: or callback function.callback {Function}Example
var less = require('engine-less');
less.renderFile('my-styles.less', {}, function (err, css) {
console.log(css);
//=> '.aaa {\n color: blue;\n}\n'
});
Jon Schlinkert
Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 24, 2015.