#WASM guide - up to date

4 messages · Page 1 of 1 (latest)

gaunt lava
#

Can anyone share some up-to-date documentation w.r.t WASM?

How are we supposed to dev efficiently, properly build/pack it and release binaries?

I have something going but my binary is 26MB without doing much at all. Is this just the reality of WASM?
Also not sure if my local setup is right - I'm likely missing out on a lot "proper setup".
The cheatbook is outdated (0.12).
All I've found is the bevy_game_template but not sure if that's what I should be looking at.

distant prairie
#

have you looked at bevy_cli? it handles a lot of wasm build stuff for you by default with its bevy build web --bundle command

#

it'll still be a several megabytes file, that is the reality of wasm games pulling in the amount of infrastructure that bevy has, but it brings things down to a manageable level (my 90MB wasm files went down to ~10-20MB)

#

(can't speak to if you'll see similar gains)