A simple and tiny livereload server and browser client, which powered by socket.io
$ npm install simple-lr --save
var lr =// Will patch the reload seed to neuron.jspatch: 'neuron.js';var app = ;app;var server = ;lr;server;
The middleware will serve:
- A restful api:
'/_reload?pathname=<pathname>'notices the reload server, and the server will broadcast to all connected clients with a reload directive.
- Patches reload seed to static file response if its pathname matches.
- Hosts reload seed as
'/_reload.js'. The seed will automatically connect the socket server.