diff --git a/Justfile b/Justfile index 5fe467b..ca2fbce 100644 --- a/Justfile +++ b/Justfile @@ -4,7 +4,7 @@ run EXAMPLE_NAME: build EXAMPLE_NAME: cargo build --release --example {{EXAMPLE_NAME}} -serve EXAMPLE_NAME: (build-web EXAMPLE_NAME) +serve-web EXAMPLE_NAME: (build-web EXAMPLE_NAME) miniserve --index index.html examples/wasm build-web EXAMPLE_NAME: diff --git a/README.md b/README.md index c36736c..374e769 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ This example is based off [`minimal-winit`](https://github.com/parasyte/pixels/t cargo run --release --example example_name ``` -### Running examples in browser +### Running examples in web browser Install dependencies. @@ -97,10 +97,10 @@ cargo install wasm-bindgen-cli just miniserve Build and serve example with [just](https://github.com/casey/just). See [`Justfile`](Justfile) for more details. ```sh -just serve example_name +just serve-web example_name ``` -Open http://localhost:8080/ in your browser to run the example. +Open http://localhost:8080/ in your web browser to run the example. ## License