plumber-less

0.2.5 • Public • Published

plumber-less Build Status

LESS compilation operation for Plumber pipelines.

Example

var less = require('plumber-less');

module.exports = function(pipelines) {

    pipelines['css'] = [
        glob('main.less'),
        less(),
        // ... more pipeline operations
    ];

    pipelines['icons'] = [
        glob('icons.less'),
        less({rootPath: '../..'}),
        // ... more pipeline operations
    ];

};

API

less(lessOptions)

Compile each input LESS resource to a single CSS resource.

Optionally, options can be passed to the LESS compiler via the lessOptions parameter.

Note that you may not specify minimisation configuration options, such as compress or cleancss; this should be done using the plumber-mincss operation instead, to ensure atomicity of operations.

Package Sidebar

Install

npm i plumber-less

Weekly Downloads

0

Version

0.2.5

License

GPL

Last publish

Collaborators

  • theefer