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
This worked like a charm up to Angular11, since it generated anonymous IDs for every chunk except for these ones (which we need to have well-identified to apply custom preload and cache rules). This is a result sample with Angular11:
Once upgraded to Angular12, the names of the theme chunks appear in the "Names" column, but the chunk is generated with a numeric ID instead of the chunk name. Result example with Angular12:
I tried to set namedChunks to true in angular.json (was set to false). The result with Angular12 is:
The "theme" chucks generate as I need them (for example, theme-3.4fd260e3bfc1e3745532.js) but the rest of the chunks generate with long unnecessary names.
Isn't there a way to produce the same result I was getting in Angular11 and below?
馃悶 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 11.2.xDescription
We are using the
webpackChunkName
magic comment on imports, i.e.:This worked like a charm up to Angular11, since it generated anonymous IDs for every chunk except for these ones (which we need to have well-identified to apply custom preload and cache rules). This is a result sample with Angular11:
Once upgraded to Angular12, the names of the theme chunks appear in the "Names" column, but the chunk is generated with a numeric ID instead of the chunk name. Result example with Angular12:
I tried to set
namedChunks
totrue
inangular.json
(was set tofalse
). The result with Angular12 is:The "theme" chucks generate as I need them (for example,
theme-3.4fd260e3bfc1e3745532.js
) but the rest of the chunks generate with long unnecessary names.Isn't there a way to produce the same result I was getting in Angular11 and below?
馃敩 Minimal Reproduction
https://github.com/acalvo/angular-named-chunks
馃敟 Exception or Error
Not an error, just not honoring the named chunks:
馃實 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: