livereloadify-script
Browserify plugin, aims to inject a LiveReload script into your js bundle.
Quick Example
$ browserify app.js -o app.bundle.js -p [ livereloadify-script ]
It should have injected this script line in your html:
Usage
Use as a browserify plugin:
$ browserify app.js -o app.bundle.js -p [ livereloadify-script --port 37687 ]
Options
host
: (defaultlocalhost
) is the address of the LiveReload server.local
: (defaultfalse
) true if you wanna use your local ip address automatically, it will take over the host option unless no ip are found.port
: (default35729
) on which the livereload server has been configured.
Testing
To run the test suite, first install the dependencies, then run npm test
:
$ npm install$ npm test