Home

Awesome

engine-less NPM version

Consolidate-style engine for rendering .less files.

Install with npm

$ npm i engine-less --save

Related

API

.render

Less string support. Process the given str of less and invoke the callback callback(err, css).

Params

Example

var str = '@red: #900;\n.foo {color: @red;}';
engine.render(str, function (err, css) {
  console.log(css);
  //=> '.foo {\n  color: #990000;\n}\n'
});

.renderFile

Less file support. Process a .less file at the given fp and callback callback(err, css).

Params

Example

var less = require('engine-less');
less.renderFile('my-styles.less', {}, function (err, css) {
  console.log(css);
  //=> '.aaa {\n  color: blue;\n}\n'
});

Author

Jon Schlinkert

License

Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on September 28, 2015.