Skip to content

Add an option to skip any post-web-build steps#776

Open
musjj wants to merge 2 commits intoTheBevyFlock:mainfrom
musjj:web-build-only
Open

Add an option to skip any post-web-build steps#776
musjj wants to merge 2 commits intoTheBevyFlock:mainfrom
musjj:web-build-only

Conversation

@musjj
Copy link
Copy Markdown
Contributor

@musjj musjj commented Apr 6, 2026

I wanted to cache the dependency artifacts of my web build, but because I'm using a dummy entrypoint I ended up hitting this issue with wasm-bindgen:

So I added a new option to skip any post-web-build steps, such as binding, optimization or bundling.

I could do this manually with cargo build, but then I'd need to duplicate the configuration I've set in bevy-cli's CLI configs.

I've also added a BEVY_WEB_SKIP_POST_PROCESSING environment variable, because of how useful this option is in the CI.

The option will skip any post-build binding, optimization or bundling.
Copy link
Copy Markdown
Collaborator

@DaAlbrecht DaAlbrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! This seems really useful, it would be cool if it were possible to choose (do wasm bindgen/ wasm-opt), but we can do this in a future PR.

@DaAlbrecht DaAlbrecht added C-Feature Make something new possible A-Web Building or running Bevy apps targeting the browser D-Trivial Nice and easy! A great choice to get started with Bevy CLI S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Apr 9, 2026
@DaAlbrecht DaAlbrecht requested a review from TimJentzsch April 9, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Web Building or running Bevy apps targeting the browser C-Feature Make something new possible D-Trivial Nice and easy! A great choice to get started with Bevy CLI S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants