1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 06:18:17 +01:00
tldr/pages/common/live-server.md
2017-12-13 13:15:59 -06:00

404 B

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}}