inject-lr-script-stream
Streamingly inject a livereload script into html.
Installation
$ npm install inject-lr-script-stream
Usage
const lr = const filed = const http = http
API
lr(opts)
Create a duplex inject stream. Expects a <body>
tag to be present. The
following opts are available:
- protocol: defaults to
http
- port: livereload port, defaults to
35729
- host: livereload host, defaults to
localhost