From 120b83178ab1cc73a7473fe5f9021207384fd21f Mon Sep 17 00:00:00 2001 From: Dan Roujinsky Date: Sat, 4 Feb 2023 20:21:23 +0200 Subject: [PATCH] fix(webpack): restore previous build logging --- packages/webpack/src/executors/webpack/lib/run-webpack.ts | 4 +++- packages/webpack/src/executors/webpack/webpack.impl.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/webpack/src/executors/webpack/lib/run-webpack.ts b/packages/webpack/src/executors/webpack/lib/run-webpack.ts index 29943c6612f5e6..8ed9a2ab13591a 100644 --- a/packages/webpack/src/executors/webpack/lib/run-webpack.ts +++ b/packages/webpack/src/executors/webpack/lib/run-webpack.ts @@ -2,7 +2,9 @@ import * as webpack from 'webpack'; import { Observable } from 'rxjs'; // TODO(jack): move to dev-server executor -export function runWebpack(config: webpack.Configuration): Observable { +export function runWebpack( + config: webpack.Configuration +): Observable { return new Observable((subscriber) => { // Passing `watch` option here will result in a warning due to missing callback. // We manually call `.watch` or `.run` later so this option isn't needed here. diff --git a/packages/webpack/src/executors/webpack/webpack.impl.ts b/packages/webpack/src/executors/webpack/webpack.impl.ts index 70e5481d3849f8..511a99f9df4b7a 100644 --- a/packages/webpack/src/executors/webpack/webpack.impl.ts +++ b/packages/webpack/src/executors/webpack/webpack.impl.ts @@ -142,7 +142,7 @@ export async function* webpackExecutor( switchMap((config) => { return runWebpack(config).pipe( tap((stats) => { - console.info(stats.toString()); + console.info(stats.toString(config.stats)); }) ); }),