npm install tlrWhat is quickier than using tiny-lr? Using tlr of course.
Small cli util that spawns a simple tiny-lr server.
> Batteries NOT included
The spawned server will listen to all regular tiny-lr endpoints.
_e.g._ If you're using nodemon you should be able to hook an event into your nodemon.json config file:
``json
{
"events": {
"restart": "sleep 1; curl http://localhost:35729/changed?files=foo"
}
}
`
Please refer to tiny-lr docs for more info on available endpoints.
`sh`
npm install tlr
`sh`
tlr
Using a custom port:
`sh`
export LR_PORT=9999
tlr
- Use it along with nodemon
- and concurrently
- to provide a single npm task
- that can be used as entry point
- Add a ` to your html template
- Livereload FTW!
MIT © Ruy Adorno