livereload
Livereload is built on top of https://github.com/mklabs/tiny-lr.
How it works
- Template injects a script which is served by
tiny-lr
middleware. - The script connects to
tiny-lr
server via WS. - The server watches for changes of built files via
chokidar
and send commands to update styles or refresh the page via WS.
The template is collected by page
block dependencies.
tiny-lr
server starts only in dev mode.