Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.12 KB

File metadata and controls

55 lines (46 loc) · 1.12 KB

Bundl Options

When creating a new bundl collection, you can pass some options...

var Bundl = require('bundl');

var options = {...};
new Bundl(targets, options);

clean

Should the destination directories be emptied before running the bundl pipeline? Default is false.

clean: true

concat

Options for concatenating multiple files together. Default glue is \n.

concat: {
    glue: ','
}

liveRequestPathMap

If provided, devserver will remap request paths using this function before returning file contents.

liveRequestPathMap: function (browserPath) {
    return browserPath.split('javascripts/').pop();
}

outputDir

Specify the destination directory for your bundles. Default is process.cwd() + '/bundled'.

outputDir: '../dist'

quiet

Prevent some log messages from showing. Default is false.

quiet: true

srcDir

Specify the source directory for your targets. Default is process.cwd().

srcDir: './src/javascripts'

watch

Specify the directory to watch for changes. Useful with devserver. Default is srcDir.

watch: './src/javascripts'