ng-serve: bundle main.js loaded instead of public/main.js #29232
Labels
area: @angular/build
devkit/build-angular:dev-server
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
serve
Is this a regression?
The previous version in which this bug was not present was
19.0.0 (not sure which one changed the behaviour... but for sure 19.0.0 was fine)
Description
Hey!
It seems to me the current
ng serve
(cli 19.0.6) has a problem loading any file namedmain.js
saved in the public folder. The issue is very easy to reproduce:main.js
inpublic/test
,ng serve
http://localhost:4200/test/main.js
,main.js
from the bundle is loaded.Minimal Reproduction
main.js
inpublic/test
,ng serve
,http://localhost:4200/test/main.js
,main.js
from the bundle is loaded.Your Environment
The text was updated successfully, but these errors were encountered: