be more precise how to open the example in the browser (needs serving) (#2108)

This commit is contained in:
Michael Kefeder 2020-04-28 20:16:17 +02:00 committed by GitHub
parent 69aef24acf
commit 8728f40aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,4 +10,14 @@ You can build the example locally with:
$ wasm-pack build --target web
```
and then opening `index.html` in a browser should run the example!
Then serve this directory in your favourite webserver and navigate to `host:port`
to open the index.html in your browser:
```
# static server from https://crates.io/crates/https
http
# or use python
python2 -m SimpleHTTPServer
python3 -m http.server
```