You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow custom web assets to be defined at package level (#485)
# Objective
Closes#440.
We allow the user to provide custom web assets to fully control how the
Bevy app is loaded.
However, it's currently only possible to provide the `web` folder for
the whole workspace, providing custom assets for an individual package
doesn't work.
# Solution
Search for the web folder first at the package level, then the workspace
level.
# Testing
The
[bevy_complex_repo](https://github.com/TimJentzsch/bevy_complex_repo)
`workspace` folder has a `custom_web_folder` package where this can be
tested.
Run `bevy run -p custom_web_folder web` in the `workspace` folder, with
the CLI installed from this branch.
In the logs you should see that it's using the package-level web assets.
The app itself should have an added "bevy" test in the HTML
# Future Work
The user might also want to customize the name of the folder / the
entire path. This will be tackled in
<#484>
0 commit comments