4.2.0 • Published 9 years ago

webant-handler-less v4.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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:

{
    "entry":"src/js/main.js",
    "dest":"build/main.js",
    "handlers":["less"]
}

You may now require LESS files:

// Get the compiled CSS.
var css = require("../path/to/styles.less");

// Apply the CSS to the document.
document.head.innerHTML += '<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 Build Status

Ensure phantomjs is installed and in your PATH, then run:

$ npm test
4.2.0

9 years ago

4.1.0

9 years ago

4.0.1

9 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

11 years ago