Skip to content

Commit 8728f40

Browse files
authored
be more precise how to open the example in the browser (needs serving) (#2108)
1 parent 69aef24 commit 8728f40

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

examples/without-a-bundler/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,14 @@ You can build the example locally with:
1010
$ wasm-pack build --target web
1111
```
1212

13-
and then opening `index.html` in a browser should run the example!
13+
Then serve this directory in your favourite webserver and navigate to `host:port`
14+
to open the index.html in your browser:
15+
16+
```
17+
# static server from https://crates.io/crates/https
18+
http
19+
20+
# or use python
21+
python2 -m SimpleHTTPServer
22+
python3 -m http.server
23+
```

0 commit comments

Comments
 (0)