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
Updating assets requires a code recompilation #7521
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixseverity5: regressiontype: bug/fix
curl localhost:4200/assets/image.svg - will not show the change
Save a file like app.component.ts
curl localhost:4200/assets/image.svg - you'll see the change
Desired functionality.
Would like changes reflected without having to update a watched file. I'm currently debugging some weird SVG issues to do with feColorMatrix and was confused why changes weren't being shown. It wasn't until I saw the same issues in Firefox that I realised the problem was the server.
Reacted by Matt, Savas AYIK, Jaye, Alexandre Lopes, Policarp Quarcoo, Ismael Ramos, Mohsen Malvandy Niko and modiract
I also think assets should trigger a reload. As far as I understand the webpack-dev-server is holding the files in RAM, so also a manually Browser Refresh wouldn't show new versions of the files in the assets folder. Therefor a restart of the CLI is mandatory, which hurts a lot with an initial startup time of e.g. 40 seconds.
Other use case besides @intellix SVG example:
Using ngx-translate with JSON files for the translations in the assets folder.
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixseverity5: regressiontype: bug/fix
Activity
savasayik commentedon Aug 28, 2017
+1
dklmuc commentedon Aug 29, 2017
I also think assets should trigger a reload. As far as I understand the webpack-dev-server is holding the files in RAM, so also a manually Browser Refresh wouldn't show new versions of the files in the assets folder. Therefor a restart of the CLI is mandatory, which hurts a lot with an initial startup time of e.g. 40 seconds.
Other use case besides @intellix SVG example:
Using ngx-translate with JSON files for the translations in the assets folder.
filipesilva commentedon Sep 5, 2017
This seems to be an unintended consequence of #7310, where another different bug was masking this bug.
fix(@angular/cli): fix asset watching
fix(@angular/cli): fix asset watching
fix(@angular/cli): fix asset watching
fix(@angular/cli): fix asset watching
fix(@angular/cli): fix asset watching
fix(@angular/cli): fix asset watching
angular-automatic-lock-bot commentedon Sep 7, 2019
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.
fix(@angular/cli): fix asset watching