mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-05 19:53:55 +03: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
|
||||
```
|
||||
|
||||
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…
Reference in New Issue
Block a user