Skip to content

Way to use webpack flag profile with statsJson flag #13907

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

Closed
mina-skunk opened this issue Mar 13, 2019 · 2 comments · Fixed by #13925
Closed

Way to use webpack flag profile with statsJson flag #13907

mina-skunk opened this issue Mar 13, 2019 · 2 comments · Fixed by #13925
Assignees
Labels
area: @angular-devkit/build-angular feature Issue that requests a new feature
Milestone

Comments

@mina-skunk
Copy link

mina-skunk commented Mar 13, 2019

🚀 Feature request

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

Running ng build [app name] --statsJson outputs a stats.json just like webpack --json > stats.json would. The profile flag for the webpack cli adds profile section to modules of the outputted json. Can we get the same output as we would with webpack --profile --json > stats.json from ng build ...

see https://webpack.js.org/api/stats/
repost of #10028

Describe the solution you'd like

Some flag or solution to make ng build [app name] --statsJson output stats.json with profile sections like webpack --profile --json > stats.json would.

Describe alternatives you've considered

ejecting to webpack

ng v

Angular CLI: 7.3.4
Node: 10.14.1
OS: win32 x64
Angular: 7.2.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.13.3
@angular-devkit/build-angular      0.13.4
@angular-devkit/build-ng-packagr   0.13.3
@angular-devkit/build-webpack      0.13.4
@angular-devkit/core               7.3.3
@angular-devkit/schematics         7.3.4
@angular/cdk                       7.3.3
@angular/cli                       7.3.4
@angular/flex-layout               7.0.0-beta.23
@angular/material                  7.3.3
@ngtools/json-schema               1.1.0
@schematics/angular                7.3.4 (cli-only)
@schematics/update                 0.13.4
ng-packagr                         4.7.1
rxjs                               6.4.0
typescript                         3.2.4
webpack                            4.29.0
@alan-agius4 alan-agius4 added the needs: discussion On the agenda for team meeting to determine next steps label Mar 14, 2019
@alan-agius4 alan-agius4 added feature Issue that requests a new feature area: @angular-devkit/build-angular and removed needs: discussion On the agenda for team meeting to determine next steps labels Mar 15, 2019
@ngbot ngbot bot added this to the Backlog milestone Mar 15, 2019
@alan-agius4
Copy link
Collaborator

Hi @gatimus, we will be enabling this by default when using the stats-json flag

@mina-skunk mina-skunk changed the title Way to use webpack flag profile with stats-json flag Way to use webpack flag profile with statsJson flag Mar 15, 2019
alexeagle pushed a commit that referenced this issue Mar 19, 2019
…g stats-json flag

More information about what `profile` does can be found here: https://webpack.js.org/api/stats

Closes #13907
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular-devkit/build-angular feature Issue that requests a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants