browserify-reload is a browserify plugin that reload your client side bundle everytime it gets updated (e.g. through watchify)
Motivation
I really cannot rely on express interceptor / proxy or whatever, browserify-reload provides the slimest overhead to reach an interactive client / server sync & reload.
It use tiny WS server (listening on random port) and inject, through browserify-wrap a tiny boostrap prefix on your browserify bundle so it listen for a "reload" event.
For convenience, you can also register additionnal file paths to be watched (once modified, they'll also trigger the client reload signal).
API
```
const reload = require('browserify-reload');
var b = bundle();
b.plugin(reload , opts)
b.bundle().pipe(somewhere);
```
Options
- { deferred : false }
- { xfiles : filepath1, filepath2 }
- { host : (default document.location.hostname) }
Credits
Keywords / shout box
browserify, prefix, suffix, wrapper, plugin, browserify-plugin