Install wasm-pack, devserver and cargo-watch
cargo install wasm-pack devserver cargo-watch
If installing the devserver fails because of missing ssl library dependencies, you need to first install libssl-dev
libraries to your system. On Ubuntu, the command would be
sudo apt-get install libssl-dev
Build interactively on each change
cargo watch -- wasm-pack build --target web
devserver
Open http://localhost:8080/ in your browser
Build with
wasm-pack build --target web