An HTTP server for testing Wasm like `gopherjs serve`
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
.gitignore
LICENSE
README.md
go.mod
go.sum
main.go

README.md

WasmServe

An HTTP server for Wasm testing like gopherjs serve

Usage

Usage of wasmserve
  -http string
        HTTP bind address to serve (default ":8080")
  -tags string
        Build tags

Example

# Be careful that `-tags=example` is required to run the below example application.
wasmserve -tags=example

And open http://localhost:8080/github.com/hajimehoshi/wasmserve/example/ on your browser.

Example 2

WasmServe can run a local project.

git clone https://github.com/hajimehoshi/ebiten # This might take several minutes.
cd ebiten/examples/sprites
wasmserve -tags=example

And open http://localhost:8080/ on your browser.