Dister builds and bundles your wasm web app.
cargo install dister
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
dister serve
):cargo install miniserve
```
USAGE:
dister
SUBCOMMANDS: build Build your wasm web app clean Clean output artifacts serve Serve the generated index.html --help Prints this message or the help of the given subcommand(s) ```
From the root of your wasm rust applications directory, run:
dister build
or dister build --release
It should generate a dist folder in the root. The generated html index file can then be served by any server or by running dister serve
. If you prefer to use another server for development, pass the dist directory to the server:
python3 -m http.server --dir dist