Skip to content

Improve default configuration for web builds #487

@TimJentzsch

Description

@TimJentzsch

We have control over the default compilation profiles and wasm-opt options used for web builds.

The current options are chosen relatively arbitrarily and not based on benchmark results. Instead, we should use all the data gathered in TheBevyFlock/bevy_new_2d#402 to choose defaults that are best for most projects.

The linked issue mostly optimizes for file size or runtime performance.
For dev builds, we want to optimize for "iteration speed", i.e. build time + load time. This might need further investigation to find the best defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BuildRelated to the bevy build commandA-WebBuilding or running Bevy apps targeting the browserS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions