browserify / watchify

watch mode for browserify builds
Other
1.79k stars 203 forks source link

Support detecting new entries #297

Open zoubin opened 8 years ago

zoubin commented 8 years ago

Another way to fix #56

Unlike #146 , this implementation does not call the constructor function each time entries added or removed, but try to only manipulate the pipeline.

The command line:

cd example/files
../../bin/cmd.js main.js -o bundle.js --entry-glob='main*.js'

cp main.js main2.js
# edit `main2.js` and save to see the change

rm main2.js

API:

b.plugin('watchify', { entryGlob: '*.js' })
zoubin commented 8 years ago

Here is an example to show the case where multiple bundles are created.

Zorgatone commented 7 years ago

+1: I had problems watching multiple bundles. It would be great if the provided example would work like that

rafegoldberg commented 6 years ago

is there any update on this? it would, in my estimation, be a killer addition to Browserify's featureset!