mirror of https://github.com/CrimsonTome/tldr.git
20 lines
404 B
Markdown
20 lines
404 B
Markdown
# live-server
|
|
|
|
> A simple development http server with live reload capability.
|
|
|
|
- Serve an index.html file and reload on changes:
|
|
|
|
`live-server`
|
|
|
|
- Specify a port (default is 8080) from which to serve a file:
|
|
|
|
`live-server --port={{8081}}`
|
|
|
|
- Specify a given file to serve:
|
|
|
|
`live-server --open={{about.html}}`
|
|
|
|
- Proxy all requests for ROUTE to URL:
|
|
|
|
`live-server --proxy={{/}}:{{http:localhost:3000}}`
|