def main [release: bool = false] { mut wasm_pack_args = [ build --target web ] if $release { $wasm_pack_args = $wasm_pack_args ++ [ --release ] } wasm-pack ...$wasm_pack_args cp pkg/frontend.js ../backend/static cp pkg/frontend_bg.wasm ../backend/static }