Skip to content

feat: add stats option#537

Closed
niedzielski wants to merge 2 commits into
webpack:masterfrom
niedzielski:feat/stats
Closed

feat: add stats option#537
niedzielski wants to merge 2 commits into
webpack:masterfrom
niedzielski:feat/stats

Conversation

@niedzielski
Copy link
Copy Markdown

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Expose a stats option to make hot module replacement and other
informational messages optional. Only stat presets are supported but the
API can be expanded to an object later if useful.

Breaking Changes

Additional Info

Expose a stats option to make hot module replacement and other
informational messages optional. Only stat presets are supported but the
API can be expanded to an object later if useful.
@niedzielski
Copy link
Copy Markdown
Author

So far as I can tell, these errors are false positives due to preexisting security audit failures.

Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need, webpack has built-in logger we should migrate on it

@niedzielski
Copy link
Copy Markdown
Author

Thank you for the fast feedback, @evilebottnawi! I'm sorry but I didn't quite understand the feedback. Are you saying to use the Webpack logger API, to abandon this change, or something else? Thank you!

@alexander-akait
Copy link
Copy Markdown
Member

Yes webpack logger API

@niedzielski
Copy link
Copy Markdown
Author

niedzielski commented Jun 12, 2020

@evilebottnawi, done (I think).

Edit: I tried to mimic the webpack-dev-server implementation and options as the HMR client context is very similar.

Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use built-in webpack logger, not loglever

@alexander-akait
Copy link
Copy Markdown
Member

webpack-dev-server@4 migrate on built-in webpack logger

@niedzielski
Copy link
Copy Markdown
Author

@evilebottnawi, thank you. Is this a good example to base the approach on?

@alexander-akait
Copy link
Copy Markdown
Member

@alexander-akait alexander-akait deleted the branch webpack:master October 20, 2025 17:37
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

Successfully merging this pull request may close these issues.

2 participants