1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 12:44:55 +02:00
tldr/pages/common/live-server.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

20 lines
471 B
Markdown

# live-server
> A simple development http server with live reload capability.
> More information: <https://www.npmjs.com/package/live-server>.
- 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}}`