https://github.com/swisscom/esbuild-webserver
A simple web-server that can be used as an alternative to Webpack's dev-server
https://github.com/swisscom/esbuild-webserver
esbuild esbuild-server
Last synced: 12 months ago
JSON representation
A simple web-server that can be used as an alternative to Webpack's dev-server
- Host: GitHub
- URL: https://github.com/swisscom/esbuild-webserver
- Owner: swisscom
- License: mit
- Created: 2021-04-30T11:00:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-25T15:01:33.000Z (almost 5 years ago)
- Last Synced: 2025-06-28T20:58:39.091Z (12 months ago)
- Topics: esbuild, esbuild-server
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
```bash
$ 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
```makefile
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
```