node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป

plumber-less

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.