watchify icon indicating copy to clipboard operation
watchify copied to clipboard

Support detecting new entries

Open zoubin opened this issue 9 years ago • 3 comments

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 avatar Jan 15 '16 04:01 zoubin

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

zoubin avatar Feb 18 '16 06:02 zoubin

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

Zorgatone avatar Feb 28 '17 15:02 Zorgatone

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

rafegoldberg avatar Oct 15 '17 16:10 rafegoldberg