From f8454fe584461588c8acdd9e95b58dd5c2c86466 Mon Sep 17 00:00:00 2001 From: Ganesh Pawar Date: Tue, 23 Aug 2022 20:44:40 +0530 Subject: [PATCH] webpack: Add a hook to print a compilation successful message. This restores output notifying the developer when webpack compilation has been completed. We originally had this feature, but the implementation was wrong, and it was removed in #19721. --- webpack.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index 9f222c373e..715592ed6e 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -209,7 +209,13 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack. devServer: { devMiddleware: { publicPath: "/webpack/", - stats: "errors-only", + stats: { + // We want just errors and a clear, brief notice + // whenever webpack compilation has finished. + preset: "minimal", + assets: false, + modules: false, + }, }, headers: { "Access-Control-Allow-Origin": "*",