plumber-less

LESS operation for Plumber pipelines

plumber-less

LESS compilation operation for Plumber pipelines.

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
    ];

};

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.