[@types/webpack-dev-server] Fix stats to webpack.Options.Stats

This commit adds more stats options available to webpack-dev-server. The webpack site [0] states that all webpack.Options.Stats are supported on webpack-dev-server:
"For webpack-dev-server, this property needs to be in the devServer object."

[0]: https://webpack.js.org/configuration/stats/
This commit is contained in:
Jani
2018-08-23 16:01:26 +03:00
committed by GitHub
parent 812734a111
commit 0c79a12f67
+1 -1
View File
@@ -158,7 +158,7 @@ declare namespace WebpackDevServer {
* This option lets you precisely control what bundle information gets displayed.
* This can be a nice middle ground if you want some bundle information, but not all of it.
*/
stats?: string | webpack.Stats;
stats?: string | webpack.Options.Stats;
/** This option lets the browser open with your local IP. */
useLocalIp?: boolean;
/** Tell the server to watch the files served by the devServer.contentBase option. File changes will trigger a full page reload. */