-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build console output shows different chunk sizes than is actually created #3565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's an interesting issue. @TheLarkInn I'm pretty sure this is a webpack issue. What do you think? |
Same for me here. Size reported in |
For me it's 4 times higher :) |
@XAMelleOH @FunnyGhost Is it still an issue? |
Yeep. The build output says: and the actual sizes are |
Still happening as of cli 1.1 |
There's a misunderstanding with sizes; these sizes are correct, but they're not what you're looking for. In webpack, there are 2 sizes: assets and chunks. Assets are the actual outputted file sizes. Chunks are pre-seal and their sizes will always be different. Chunk size is basically the size of all the files in the chunk, before optimization, before adding decorations. My PR just swap those to display the asset size of the first asset of the chunk. This should be more expected for you guys. |
BTW, this is why you end up with a |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
Output logs
Problem
Noticed that the
ng build
output displays the size as almost double of what is actually created. i.e it says the the0.***.chunk.js
is 2.06MB, but the file produced s only 938k. More the 2x the actual size.The text was updated successfully, but these errors were encountered: