mirror of
https://github.com/swisscom/esbuild-webserver.git
synced 2026-12-04 16:48:41 +00:00
A simple web-server that can be used as an alternative to Webpack's dev-server | Read-only mirror of https://github.com/swisscom/esbuild-webserver — Swisscom. Issues & pull requests at the source.
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cmd/esbuild-webserver | ||
| pkg | ||
| go.mod | ||
| go.sum | ||
| LICENSE.md | ||
| README.md | ||
esbuild-webserver
A simple web-server that can be used as an alternative to Webpack's dev-server
Compile
go build -o ~/go/bin/esbuild-webserver ./cmd/esbuild-webserver
Usage
$ esbuild-webserver -h
Usage: esbuild-webserver --endpoint ENDPOINT [--listen LISTEN]
Options:
--endpoint ENDPOINT, -e ENDPOINT
--listen LISTEN, -l LISTEN [default: 127.0.0.1:8080]
--help, -h display this help and exit
Example
serve:
esbuild-webserver \
-e /api:proxy=http://127.0.0.1:8080 \
-e /static:proxy=http://127.0.0.1:8080 \
-e /:file=./dist/ \
-e 404:404=./dist/index.html \
-l 127.0.0.1:8000