$ npm install inject-lr-script-streamStreamingly inject a livereload script into html.
$ npm install inject-lr-script-stream
const lr = require('inject-lr-script-stream')
const filed = require('filed')
const http = require('http')
http.createServer((req, res) => {
filed(__dirname + '/index.html')
.pipe(lr())
.pipe(res)
})
Create a duplex inject stream. Expects a <body> tag to be present. The
following opts are available:
http35729localhost