watchify2
This is a clone for watchify to support detecting new entries.
It is based on this pr, and once watchify handles watching adding/removing entry files, this package will be deprecated.
Example
Command line
cd example/files../../bin/cmd.js main.js -o bundle.js --entry-glob='main*.js' # new entry cp main.js main2.js # edit `main2.js` and save to see the change # delete entry rm main2.js
API
var fs = var browserify = var b = b b { console b}
Creating multiple bundles
var vfs = var del = var browserify = var through = var b = bbb b { console var build = __dirname + '/build' b} { var undef b { bpipeline }}
The dedupify
plugin in the example above is used to fix a known problem with browserify (see substack/factor-bundle#51).
Right now it is a little tricky to detect new entries with factor-bundle, so common-bundle is used instead.