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
{{ message }}
Repository navigation
ng-serve: bundle main.js loaded instead of public/main.js #29232
Yes, this behavior used to work in the previous version
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 named main.js saved in the public folder. The issue is very easy to reproduce:
create a new project,
save a simple main.js in public/test,
run ng serve
open http://localhost:4200/test/main.js,
the main.js from the bundle is loaded.
Minimal Reproduction
create a new project,
save a simple main.js in public/test,
run ng serve,
open http://localhost:4200/test/main.js,
Activity
fix(@angular/build): enable serving files with bundle-like names
fix(@angular/build): enable serving files with bundle-like names
fix(@angular/build): enable serving files with bundle-like names
angular-automatic-lock-bot commentedon Feb 7, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.