From 0c79a12f676fefdccf3d047925094a45ff751d29 Mon Sep 17 00:00:00 2001 From: Jani Date: Thu, 23 Aug 2018 16:01:26 +0300 Subject: [PATCH] [@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/ --- types/webpack-dev-server/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack-dev-server/index.d.ts b/types/webpack-dev-server/index.d.ts index 435d2547d9..62b6cedbc2 100644 --- a/types/webpack-dev-server/index.d.ts +++ b/types/webpack-dev-server/index.d.ts @@ -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. */