hapi-less
A LessCSS plugin for hapijs
Installation
npm install hapi-less
Usage
serverpack;
options is an object with these keys:
home: root folder of the less files. mandatory.
route: hapi route to bind, must have a {filename*} somewhere. optional, defaults to '/styles/{filename*}'.
less: parameters to pass to less. optional.
If you want to print errors to console, then create the server like this:
var server = 'localhost' 8080 debug: request: 'hapi-less';
hapi-less logs all errors under the 'hapi-less' and 'error' tags.
License
hapi-less is distributed under the MIT license.