node-modules-webant-handler-less
Require LESS files with webant
Installation
$ npm install webant-handler-less
Usage
Ensure the less
handler is present in your webant configuration file. For example:
You may now require
LESS files:
// Get the compiled CSS.var css = ; // Apply the CSS to the document.documentheadinnerHTML += '<style type="text/css">' + css + '</style>';
See the webant module for more information.
Settings
compress
Can be either true
or false
(default). Controls whether the compiled CSS is compressed.
Tests
Ensure phantomjs is installed and in your PATH, then run:
$ npm test