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.
This commit is contained in:
Ganesh Pawar 2022-08-23 20:44:40 +05:30 committed by Tim Abbott
parent 7879f78917
commit f8454fe584
1 changed files with 7 additions and 1 deletions

View File

@ -209,7 +209,13 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
devServer: { devServer: {
devMiddleware: { devMiddleware: {
publicPath: "/webpack/", 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: { headers: {
"Access-Control-Allow-Origin": "*", "Access-Control-Allow-Origin": "*",