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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose logs from --profile hidden, not shown #1106

Open
sandermarechal opened this issue Mar 24, 2022 · 3 comments
Open

Verbose logs from --profile hidden, not shown #1106

sandermarechal opened this issue Mar 24, 2022 · 3 comments

Comments

@sandermarechal
Copy link

When I run encore using the --profile option, I still don't see any extra logs. Example:

> encore production --profile

Running webpack ...

 DONE  Compiled successfully in 30081ms                                                                                                                                   9:58:34 AM

2961 files written to HTML/build
assets by path ckeditor/plugins/ 2.3 MiB 2628 assets
assets by info 13.5 MiB [immutable] 106 assets
assets by path ckeditor/skins/ 1.1 MiB 71 assets
assets by path ckeditor/lang/ 898 KiB
  asset ckeditor/lang/km.js 21.6 KiB [emitted] [from: ckeditor/lang/km.js?copy-files-loader] [minimized] (auxiliary name: _tmp_copy)
  + 70 assets
assets by path dropzone/ 198 KiB 17 assets
assets by path ckeditor/*.js 655 KiB
  asset ckeditor/ckeditor.js 652 KiB [emitted] [from: ckeditor/ckeditor.js?copy-files-loader] [minimized] [big] (auxiliary name: _tmp_copy)
  asset ckeditor/styles.js 2.56 KiB [emitted] [from: ckeditor/styles.js?copy-files-loader] [minimized] (auxiliary name: _tmp_copy)
  asset ckeditor/config.js 661 bytes [emitted] [from: ckeditor/config.js?copy-files-loader] [minimized] (auxiliary name: _tmp_copy) 1 related asset
asset manifest.json 275 KiB [compared for emit] [big]
asset ckeditor/vendor/promise.js 6 KiB [emitted] [from: ckeditor/vendor/promise.js?copy-files-loader] [minimized] (auxiliary name: _tmp_copy)
asset ckeditor/adapters/jquery.js 2.92 KiB [emitted] [from: ckeditor/adapters/jquery.js?copy-files-loader] [minimized] (auxiliary name: _tmp_copy)
asset ckeditor/contents.css 1.78 KiB [emitted] [from: ckeditor/contents.css?copy-files-loader] [minimized] (auxiliary name: _tmp_copy)
orphan modules 748 KiB [orphan] 79 modules
runtime modules 3.71 KiB 10 modules
modules by path ./node_modules/ckeditor4/plugins/ 211 KiB 2628 modules
modules by path ./node_modules/ckeditor4/lang/ 4.41 KiB 71 modules
modules by path ./node_modules/ckeditor4/skins/ 5.71 KiB 71 modules
modules by path ./src/Prezent/ 775 KiB (javascript) 407 KiB (css/mini-extract) 61 modules
modules by path ./node_modules/dropzone/ 120 KiB 18 modules
modules by path ./node_modules/jquery-ui/ui/ 177 KiB 12 modules
modules by path ./app/Resources/assets/ 6.32 KiB (javascript) 620 KiB (css/mini-extract) 8 modules
modules by path ./node_modules/foundation-sites/js/foundation/*.js 93.1 KiB 8 modules
modules by path *.* 131 KiB 6 modules
modules by path ./node_modules/jquery-ui-timepicker-addon/dist/ 56.7 KiB 3 modules
modules by path ./node_modules/ckeditor4/*.js 188 bytes 3 modules
modules by path ./node_modules/@fullcalendar/ 26.9 KiB 2 modules
+ 18 modules

LOG from webpack.Compilation.ModuleProfile
<i> 2441 ms build modules
+ 86 hidden lines

It seems like all the extra profile lines are hidden again, see the 86 hidden lines at the end.

@weaverryan
Copy link
Member

It may be related to this line:

if (!this.webpackConfig.runtimeConfig.outputJson && !this.webpackConfig.runtimeConfig.profile) {

We should possibly be avoiding silencing the stats if the output is json OR if --profile is passed. PR welcome :)

@GwendolenLynch
Copy link

I just got lost down a rabbit hole on this one too. 🐰

It turns out it just requires --stats verbose to be added.

See webpack/webpack#14016 (comment) onwards.

@carsonbot
Copy link

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants