Open subodhkumar opened 5 years ago
@meltedspark thanks for the tool... i am working on a change to have this support. Shall i create a pull request for it once done?
Yes, please do. However, keep in mind a few things:
custom-webpack:browser
builder. If it's not, then it's probably a bug and has to be investigated and treated accordingly. Meaning, you don't need to duplicate this functionality here, just need to understand why the default builder won't handle it.Otherwise any contribution is very appreciated, thank you!
Thanks @meltedspark ,
Please find my initial analysis below, Default 'browser' builder of @angular-devkit has code which will wrap generated webpack config inside 'speed-measure-webpack-plugin' to generate output as json ('speed-measure-plugin.json), if '--profile' option in enabled. In the custom-webpack builder ,webpack configuration prepared by the @angular-devkit is read and additional configurations are added, which may be causing the issue.
Please correct if there is any miss, & also will have it validated at my end.
@subodhkumar any update on this? Does default builder support this option while the custom does not?
@subodhkumar
Could you provide a reproduction? I went via your instructions and it seems like this expression:
The generated 'speed-measure-plugin.json' file will not have any content.
is not truthy. See below:
Describe the bug Support for the '--profile' option in the 'ng build' needs to be added.
To Reproduce Steps to reproduce the behavior:
OR (preferred way)
a link to a repository with minimal reproduction
Expected behavior The 'speed-measure-plugin.json' should have build stats
Builder: custom-webpack:browser