This package has been deprecated

Author message:

WARNING: This module has been renamed to changed-bundle. Please install it instead. See https://github.com/wordijp/changed-bundle for more information.

maybe-bundle

1.0.2 • Public • Published

maybe-bundle

NPM

Let maybe-bundle plugin for watchify, provides to re bundle only when files changed.

install

npm install maybe-bundle

usage

Programmatic API

In your task runner like gulp, add this plugin to browserify:

var b = browserify({
    entries: ['entry.js'],
    cache: {},
    packageCache: {},
    plugin: [watchify],
})
    .plugin('maybe-bundle', {
        label: 'LABEL' // optional. distinction with other skip messages
    });

Command Line

$ watchify entry.js -v -p [maybe-bundle --label LABEL] > bundle.js

running demo

first time bundle is output bundle file.

567 bytes written to bundle.js (0.12 seconds)

bundle from the second time, skip re bundle if no change in the files.

*** LABEL: skip write to bundle file ***

license

MIT

Package Sidebar

Install

npm i maybe-bundle

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • wordijp