mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 20:35:32 +02:00
live-server: add page (#1782)
This commit is contained in:
commit
bb70424647
1 changed files with 19 additions and 0 deletions
19
pages/common/live-server.md
Normal file
19
pages/common/live-server.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue