1.0.2 • Published 7 years ago

livereloadify-script v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

livereloadify-script Build Status

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:

<script src="//localhost:35729/livereload.js?snipver=1"></script>

Usage

NPM

Use as a browserify plugin:

$ browserify app.js -o app.bundle.js -p [ livereloadify-script --port 37687 ]

Options

  • host: (default localhost) is the address of the LiveReload server.
  • local: (default false) true if you wanna use your local ip address automatically, it will take over the host option unless no ip are found.
  • port: (default 35729) 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

Licence

MIT