Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webpack): restore previous build logging #14801

Merged
merged 1 commit into from Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/webpack/src/executors/webpack/lib/run-webpack.ts
Expand Up @@ -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<any> {
export function runWebpack(
config: webpack.Configuration
): Observable<webpack.Stats> {
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.
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack/src/executors/webpack/webpack.impl.ts
Expand Up @@ -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));
})
);
}),
Expand Down