Skip to content

Allow bevy build web to bundle multiple binary targets #230

@TimJentzsch

Description

@TimJentzsch

cargo build can build multiple packages at once.

bevy build web only partially supports this: As it wraps cargo build, all the Wasm binaries will be built as intended, but the bindgen creation and folder bundling currently uses the bevy 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BuildRelated to the bevy build commandA-CLIRelated to the main CLI and not a more specific subcommandA-WebBuilding or running Bevy apps targeting the browserC-BugA bug in the programS-Ready-for-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions