|
|
|
@ -5,14 +5,14 @@ |
|
|
|
## Installation |
|
|
|
|
|
|
|
```bash |
|
|
|
npm install livereload-server |
|
|
|
npm install lrserver |
|
|
|
``` |
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
``` |
|
|
|
$ livereload-server --help |
|
|
|
livereload-server |
|
|
|
$ lrserver --help |
|
|
|
lrserver |
|
|
|
|
|
|
|
Positionals: |
|
|
|
serve The directory to serve static files from [string] |
|
|
|
@ -29,20 +29,20 @@ Options: |
|
|
|
|
|
|
|
```bash |
|
|
|
# Use default settings and serve static files from current directory |
|
|
|
livereload-server |
|
|
|
lrserver |
|
|
|
|
|
|
|
# Explicitly set the path to serve files from |
|
|
|
livereload-server path/to/files/ |
|
|
|
lrserver path/to/files/ |
|
|
|
|
|
|
|
# Explicitly set the directory to watch and path to serve files from |
|
|
|
livereload-server --watch path/to/watch/ path/to/files/ |
|
|
|
lrserver --watch path/to/watch/ path/to/files/ |
|
|
|
|
|
|
|
# Setting multiple paths to watch |
|
|
|
livereload-server --watch path/1/ --watch path/2/ path/to/files/ |
|
|
|
lrserver --watch path/1/ --watch path/2/ path/to/files/ |
|
|
|
|
|
|
|
# Change the port the static server binds to |
|
|
|
livereload-server --bind '0.0.0.0:3000' |
|
|
|
lrserver --bind '0.0.0.0:3000' |
|
|
|
|
|
|
|
# Change the port the LiveReload server binds to |
|
|
|
livereload-server -lrbind '0.0.0.0:35729' |
|
|
|
lrserver --lrbind '0.0.0.0:35729' |
|
|
|
``` |