You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The web (through WASM) is a common platform for game jams, but it currently requires jumping through some hoops to get it working with Bevy. We should make this process easier, specifically for during the development cycle.
We could have a bevy web or bevy run --web command that does the following:
Builds project for wasm32-unknown-unknown target and passes flags along to cargo.
Sets up a basic index.html if you have none
Runs wasm-bindgen
Copies the assets to be served
Starts a local HTTP server
Opens the browser
IIRC cargo-bavy already does most of these, so we can borrow code from there.
The text was updated successfully, but these errors were encountered:
The edit swallowed up one major point: passes flags along to cargo. This is the one thing that is annoying me the most about Trunk, since it means we cannot have dedicated Wasm profiles when using it.
Edited it back in :)
The web (through WASM) is a common platform for game jams, but it currently requires jumping through some hoops to get it working with Bevy. We should make this process easier, specifically for during the development cycle.
We could have a
bevy web
orbevy run --web
command that does the following:wasm32-unknown-unknown
target and passes flags along to cargo.index.html
if you have nonewasm-bindgen
IIRC
cargo-bavy
already does most of these, so we can borrow code from there.The text was updated successfully, but these errors were encountered: