mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 17:50:51 +00:00
be more precise how to open the example in the browser (needs serving) (#2108)
This commit is contained in:
parent
69aef24acf
commit
8728f40aac
@ -10,4 +10,14 @@ You can build the example locally with:
|
|||||||
$ wasm-pack build --target web
|
$ 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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user