-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
docs: add verbose stats example #16973
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
base: main
Are you sure you want to change the base?
Conversation
For maintainers only:
|
examples/stats-verbose/README.md
Outdated
<t> sort relevant modules: 0.000541 ms | ||
<t> find modules to concatenate: 0.000875 ms | ||
<t> sort concat configurations: 0.000334 ms | ||
<t> create concatenated modules: 0.020458 ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let't disable logging, because it is about stats and we shoud provide link on that is assets/chunk/module and maybe some other notes, you can put links on our documentation
Please fix lint |
@ersachin3112 Thanks for your update. I labeled the Pull Request so reviewers will review it again. @alexander-akait Please review the new changes. |
path: path.join(__dirname, "dist"), | ||
filename: "output.js", | ||
}, | ||
stats: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I mistaken in that there is not a options.stats="verbose"
preset in webpack which does this so the user doesn't have to set all these values to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheLarkInn yes, but we want to disable logging as suggested in #16973 (comment)
Summary
Related to #13950
🤖 Generated by Copilot at 20794af
This pull request adds a new example to the webpack repository, which demonstrates the use of the verbose stats option in webpack. It also adds a new feature to the
build-common.js
script, which allows the user to enable or disable the color output of the stats. The new example consists of several files, such asexample.js
,webpack.config.js
,build.js
,README.md
, andtemplate.md
, which are explained in detail in the change descriptions.Details
🤖 Generated by Copilot at 20794af
statsColorsArg
to thebuild-common.js
script to enable or disable the color output of the stats (link)