2017-12-10 22:51:53 +00:00
|
|
|
# live-server
|
|
|
|
|
|
|
|
> A simple development http server with live reload capability.
|
|
|
|
|
2017-12-10 23:22:07 +00:00
|
|
|
- Serve an index.html file and reload on changes:
|
2017-12-10 22:51:53 +00:00
|
|
|
|
|
|
|
`live-server`
|
|
|
|
|
2017-12-10 23:18:55 +00:00
|
|
|
- Specify a port from which to serve a file:
|
2017-12-10 22:51:53 +00:00
|
|
|
|
|
|
|
`live-server --port=8081`
|
|
|
|
|
2017-12-10 23:22:07 +00:00
|
|
|
- Select file other than index.html to serve:
|
2017-12-10 22:51:53 +00:00
|
|
|
|
|
|
|
`live-server --open=about.html`
|
|
|
|
|
2017-12-10 23:18:55 +00:00
|
|
|
- Proxy all requests for ROUTE to URL:
|
2017-12-10 22:51:53 +00:00
|
|
|
|
|
|
|
`live-server --proxy=/:http:localhost:3000`
|