browserify / watchify

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

Use browserify's plugin API in readme? #270

Closed lukehorvat closed 8 years ago

lukehorvat commented 9 years ago

Correct me if I'm wrong here, but isn't watchify just a browserify plugin? So why not use the plugin API in the readme?

var b = browserify(watchify.args).plugin(watchify);

I think it's more readable than wrapping the browserify instance, and it also eliminates the need for separate b and w variables.

Happy to do a PR if you agree.

zertosh commented 9 years ago

It's a question of preference – there are many ways to interact with the API. Your way works, and so does:

var b = watchify(browserify(watchify.args));
zertosh commented 8 years ago

The readme now shows multiple ways of adding the plugin. (see e8f021771aa5fdb33797eb06f95da6507c4e4e06)

lukehorvat commented 8 years ago

:+1: Nice.