From 8728f40aace9d0d44a639a0afcb846ee1270b07e Mon Sep 17 00:00:00 2001 From: Michael Kefeder Date: Tue, 28 Apr 2020 20:16:17 +0200 Subject: [PATCH] be more precise how to open the example in the browser (needs serving) (#2108) --- examples/without-a-bundler/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/without-a-bundler/README.md b/examples/without-a-bundler/README.md index 00e17c237..ce28fe570 100644 --- a/examples/without-a-bundler/README.md +++ b/examples/without-a-bundler/README.md @@ -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 +```