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.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-04-30 14:21:09 +02:00
cmd/esbuild-webserver initial commit 2021-04-30 12:58:30 +02:00
pkg feat: improve code 2021-04-30 14:19:14 +02:00
go.mod initial commit 2021-04-30 12:58:30 +02:00
go.sum initial commit 2021-04-30 12:58:30 +02:00
LICENSE.md add license 2021-04-30 12:59:51 +02:00
README.md doc: improve README 2021-04-30 14:21:09 +02:00

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