banira serve

Serve a directory over HTTP with live reload — changes under the root trigger a browser refresh.

Usage

$ banira serve [root] [options]

Arguments

ArgumentDescription
[root]Directory to serve. (default: .)

Options

OptionDescription
-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)
--tsServe TypeScript transpiled on the fly (no separate compile step).
--hmrHot-swap custom elements in place instead of a full-page reload.
--import-mapInject a