webpack / webpack-dev-middleware

A development middleware for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support stats option for webpack-dev-middleware

clarkdo opened this issue · comments

  • Operating System: macOS Catalina
  • Node Version: 14.8.0
  • NPM Version: 6.14.0
  • webpack Version: 4.46.0
  • webpack-dev-middleware Version: 4.0.4

Feature Proposal

Add stats option for webpack-dev-middleware to control stats printed by webpack-dev-middleware

Feature Use Case

When we use custom plugins for stats output like webpackbar, we hope webpack-dev-middleware can have an option to control stats output from the middleware like: disabling stats log without overriding stats in webpack config.

More details can be found in #817

Thanks, I will implement this tomorrow

Thank you so much for the new option!

Sorry for small delay

I just opened a pr for updating types definition. DefinitelyTyped/DefinitelyTyped#50645

I think we can implement built-in types here using typescript jsdocs (as we use in webpack and some other repos)

If you want to help, feel free to send a PR ⭐

I may have a look when I get a chance, feel free to go ahead if it's urgent.