Commit febf8d2
authored
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>1 parent 8b764fe commit febf8d2
1 file changed
+45
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
87 | 123 | | |
88 | | - | |
89 | 124 | | |
90 | 125 | | |
91 | 126 | | |
| |||
96 | 131 | | |
97 | 132 | | |
98 | 133 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 134 | + | |
102 | 135 | | |
103 | 136 | | |
104 | 137 | | |
| |||
156 | 189 | | |
157 | 190 | | |
158 | 191 | | |
159 | | - | |
| 192 | + | |
160 | 193 | | |
161 | 194 | | |
162 | | - | |
| 195 | + | |
163 | 196 | | |
164 | 197 | | |
165 | | - | |
| 198 | + | |
166 | 199 | | |
167 | 200 | | |
168 | 201 | | |
| |||
0 commit comments