@jamen/reload-server
v2.0.0
Published
Dev server that reloads from streamed events.
Downloads
5
Readme
reload-server
Dev server that reloads from streamed events.
Install
$ npm i -D @jamen/reload-server
Usage
reload-server [entry]
Start a static server at entry
(defaults to cwd).
$ reloader | reload-server [entry]
The reloader
is any command which streams newline-delimited events.
Like @jamen/watch-exec
:
$ watch-exec --watch "src/*.*" "make" | reload-server srv
The server can be configured through the environment variables:
RELOAD_ADDRESS
RELOAD_PORT