0.4.2 • Published 10 years ago

plumber-rework v0.4.2

Weekly downloads
2
License
GPL
Repository
github
Last release
10 years ago

plumber-rework Build Status

Rework compilation operation for Plumber pipelines.

Example

var rework = require('plumber-rework');
var reworkImport = require('rework-import');

module.exports = function(pipelines) {

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

    pipelines['icons'] = [
        glob('icons.css'),
        rework({ plugins: [reworkImport()]}),
        // ... more pipeline operations
    ];

};

API

rework(options)

Compile each input CSS resource to a single CSS resource.

Optionally, plugins can be passed to the Rework compiler via options.plugins.