Install wasm-pack, as described here: https://yew.rs/docs/getting-started/project-setup/using-wasm-pack.
Build from within the client directory:
wasm-pack build --target web --out-name wasm --out-dir ../server/staticor
trunk build -d ../server/static/ Wasm package will be published in server/static directory.