node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป

plumber-write

plumber-write Build Status

Write-to-filesystem operation for Plumber pipelines.

Example

var write = require('plumber-write');

module.exports = function(pipelines) {

    pipelines['compile'] = [
        // ... pipeline operations
        write('target/dist')
    ];

};

API

write(destination)

Write all input resources to the destination directory.

A Report is generated for each resources written to disk.

write.omitSourceMap

Returns a new write operation that won't write out the source map data.

omitSourceMap can be used either as a prefix or suffix:

var writeNoMap = write.omitSourceMap;

pipelines['compile'] = [
    // ... pipeline operations
    writeNoMap('target/dist')
];

// or

pipelines['compile'] = [
    // ... pipeline operations
    write('target/dist').omitSourceMap
];

write.omitContentFromSourceMap

Returns a new write operation that will write out source maps without the sourcesContent.

Like omitSourceMap, omitContentFromSourceMap can be used either as a prefix or suffix.