Closed lukehorvat closed 8 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));
The readme now shows multiple ways of adding the plugin. (see e8f021771aa5fdb33797eb06f95da6507c4e4e06)
:+1: Nice.
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?
I think it's more readable than wrapping the browserify instance, and it also eliminates the need for separate
b
andw
variables.Happy to do a PR if you agree.