Allow bevy build web
to bundle multiple binary targets
#230
Labels
A-Build
Related to the bevy build command
A-Web
Building or running Bevy apps targeting the browser
C-Bug
A bug in the program
S-Ready-for-Implementation
This issue is ready for an implementation PR. Go for it!
cargo build
can build multiple packages at once.bevy build web
only partially supports this: As it wrapscargo build
, all the Wasm binaries will be built as intended, but the bindgen creation and folder bundling currently uses thebevy run web
logic and only selects a single target.Instead, we should create the bindings and bundle the folders for all binaries compiled by
cargo build
.Note that we should only do this for binary targets (and examples), not libraries, benchmarks and tests.
The text was updated successfully, but these errors were encountered: