-
Notifications
You must be signed in to change notification settings - Fork 12k
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
function "statsToString" only prints the size of the first file #16627
Comments
That's indeed not great :( I'm surprised it took this long to come up too! Would you be interested in taking a look? |
I'll try to take a look at it! |
I don't think we have a good way of testing this change... If I were looking into this, I'd first start with a real project that I know is doing the wrong thing. Then I'd go directly into node modules and change the code to do the right thing. Then I'd make a PR with those changes, and put in the PR message a before and after screenshot. Rather informal but I think that's what we did the last few times we changes the logging format. |
Can you also provide an example webpack configuration that exhibits the issue described above? |
@filipesilva Ok -Edit |
…chunk during the build statistic print. Fixes: angular#16627
…chunk during the build statistic print. Fixes: #16627
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No
Description
I'm CLI-izing an old application and to do so, i've set up the build target with
@angular-builders/custom-webpack:browser
My
webpack.config.js
emits themain_client.js
together with aninitial.css
,when this happens, the Angular-CLI function
statsToString
only prints the size of the first file it encounters like so:which generates this not-so-good report where the sizes are 73KB for
initial.css
and around 8MB formain-client.js
Now, i know i'm not supposed to use my own webpack with the CLI etc.. etc.. etc.. but since the logger actually prints all initial file's names i would assume it would also sum their sizes?
Still, the build is somehow working and I'm already quite happy about that, but if you guys could fix up the size count of the initial chunk, that would be terrific! :)
Thanks!
The text was updated successfully, but these errors were encountered: