Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to use webpack flag profile with statsJson flag #13907

Closed
william-lohan opened this Issue Mar 13, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@william-lohan
Copy link

william-lohan 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

This comment has been minimized.

Copy link
Collaborator

alan-agius4 commented Mar 15, 2019

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

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Mar 15, 2019

feat(@angular-devkit/build-angular): enable webpack profile when usin鈥
鈥 stats-json flag

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

Closes angular#13907

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Mar 15, 2019

feat(@angular-devkit/build-angular): enable webpack profile when usin鈥
鈥 stats-json flag

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

Closes angular#13907

@william-lohan william-lohan 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

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Mar 18, 2019

feat(@angular-devkit/build-angular): enable webpack profile when usin鈥
鈥 stats-json flag

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

Closes angular#13907

alexeagle added a commit that referenced this issue Mar 19, 2019

feat(@angular-devkit/build-angular): enable webpack profile when usin鈥
鈥 stats-json flag

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

Closes #13907
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.