Serve a directory over HTTP with live reload — changes under the root trigger a browser refresh.
Usage
$ banira serve [root] [options]
Arguments
| Argument | Description |
|---|
[root] | Directory to serve. (default: .) |
Options
| Option | Description |
|---|
-p, --port <number> | Port to listen on. (default: 8080) |
--host <host> | Host/interface to bind. Use 0.0.0.0 to expose on the network. (default: 127.0.0.1) |
--ts | Serve TypeScript transpiled on the fly (no separate compile step). |
--hmr | Hot-swap custom elements in place instead of a full-page reload. |
--import-map | Inject a
|