2.0.0 • Published 6 years ago

bundl-write v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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();
2.0.0

6 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago