plumber-libsass
v0.4.0
Published
Sass operation for Plumber pipelines
Downloads
19
Readme
plumber-libsass
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.