plumber-libsass

0.4.0 • Public • Published

plumber-libsass Build Status

Sass compilation operation for Plumber pipelines.

Example

var sass = require('plumber-libsass');

module.exports = function(pipelines) {

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

    pipelines['icons'] = [
        glob('icons.sass'),
        sass({precision: 5}),
        // ... more pipeline operations
    ];

};

API

sass(sassOptions)

Compile each input Sass resource to a single CSS resource.

Optionally, options can be passed to the Sass compiler via the sassOptions 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-libsass

Weekly Downloads

2

Version

0.4.0

License

GPL

Last publish

Collaborators

  • theefer