livereloadify-script

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i livereloadify-script

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sreucherand