Run rustup update to get the latest version of Rust
After installing Rust, you can use Cargo to install trunk by running:
cargo install --locked trunkWe will also need to add the WASM build target by running:
rustup target add wasm32-unknown-unknownFirst clone the project and get into it's folder
git@github.com:Sloth-Wizard/yew-test.git
cd yew-testThen run
trunk serveYou will maybe see a warning displayed in the console telling us to convert the document static to DOCUMENT but this does not work for wasm_bindgen.
Keeping document in lowercase is important.
If you change the Typescript, run the following to build the needed scripts so that trunk can correctly copy your new code
npm run prod-tsThe SCSS is handeled by trunk directly