Commit 099e52f
committed
fix(@angular/build): serve emitted HTML assets in dev-server
Previously, `assets-middleware` excluded all `.html` files from being served from virtual output files, causing servable HTML files (such as those emitted via `file` loader when imported from TypeScript) to fall through to `html-fallback-middleware` and redirect to `/index.html`.
This commit updates the check in `assets-middleware` so that servable HTML assets (excluding `/index.html` and `/index.csr.html`) are served directly.
Fixes angular#341661 parent 295550b commit 099e52f
2 files changed
Lines changed: 26 additions & 1 deletion
File tree
- packages/angular/build/src
- builders/dev-server/tests/behavior
- tools/vite/middlewares
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
238 | 263 | | |
239 | 264 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments