bundl-write
v2.0.0
Published
Write content to disk
Downloads
6
Readme
bundl-write
Write bundles to disk
Runs with the amazing Bundl build tool
Install
$ npm install --save-dev bundl-write
Use
var Bundl = require('bundl');
var minify = require('bundl-minify');
var rename = require('bundl-rename');
var write = require('bundl-write');
new Bundl(targets)
.then(write())
.then(minify())
.then(rename('.min.js'))
.then(write())
.go();
Options
Defaults to the outputDir
of each added bundle
new Bundl()
.add(targets, { outputDir: '../one' })
.add(targets, { outputDir: '../two' })
.then(write())
.go();
Override outputDir with a String
new Bundl(targets)
.then(write('../dist'))
.go();
Override with an options Object
var options = {
outputDir: '../dist'
};
new Bundl(targets)
.then(write(options))
.go();