From a7a7675a3ba50267d16b46764f4e01b9ad71a747 Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" <1474479+chenhunghan@users.noreply.github.com> Date: Mon, 14 Dec 2020 20:33:31 +0800 Subject: [PATCH] Use stats: minimal Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> --- webpack.extension-api.ts | 5 ++--- webpack.main.ts | 4 +++- webpack.renderer.ts | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/webpack.extension-api.ts b/webpack.extension-api.ts index 8e7935cca4..d91156661f 100644 --- a/webpack.extension-api.ts +++ b/webpack.extension-api.ts @@ -133,8 +133,7 @@ export default function (): webpack.Configuration { // out: 'extension-api.d.ts', // }) ], - // we probably don't need warnings as - // the output is only used for extension development/testing - stats: "errors-only" + // only output when errors or new compilation happen + stats: "minimal" }; } diff --git a/webpack.main.ts b/webpack.main.ts index 6e7af25ef8..b632a51c00 100755 --- a/webpack.main.ts +++ b/webpack.main.ts @@ -68,6 +68,8 @@ export default function (): webpack.Configuration { plugins: [ new ForkTsCheckerPlugin(), new webpack.ProgressPlugin({ percentBy: "entries" }), - ] + ], + // only output when errors or new compilation happen + stats: "minimal" }; } diff --git a/webpack.renderer.ts b/webpack.renderer.ts index 0fade85d9f..267676ee01 100755 --- a/webpack.renderer.ts +++ b/webpack.renderer.ts @@ -188,5 +188,7 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura isDevelopment && new ReactRefreshWebpackPlugin(), ].filter(Boolean), + // only output when errors or new compilation happen + stats: "minimal" }; }