2017-12-10 16:51:53 -06:00
|
|
|
# live-server
|
|
|
|
|
|
|
|
> A simple development http server with live reload capability.
|
|
|
|
|
2017-12-10 21:37:01 -06:00
|
|
|
- Serve an index.html file and reload on changes:
|
2017-12-10 16:51:53 -06:00
|
|
|
|
|
|
|
`live-server`
|
|
|
|
|
2017-12-13 13:15:59 -06:00
|
|
|
- Specify a port (default is 8080) from which to serve a file:
|
2017-12-10 16:51:53 -06:00
|
|
|
|
2017-12-10 21:34:49 -06:00
|
|
|
`live-server --port={{8081}}`
|
2017-12-10 16:51:53 -06:00
|
|
|
|
2017-12-10 21:37:01 -06:00
|
|
|
- Specify a given file to serve:
|
2017-12-10 16:51:53 -06:00
|
|
|
|
2017-12-10 21:34:49 -06:00
|
|
|
`live-server --open={{about.html}}`
|
2017-12-10 16:51:53 -06:00
|
|
|
|
2017-12-10 21:37:01 -06:00
|
|
|
- Proxy all requests for ROUTE to URL:
|
2017-12-10 16:51:53 -06:00
|
|
|
|
2017-12-10 21:34:49 -06:00
|
|
|
`live-server --proxy={{/}}:{{http:localhost:3000}}`
|