diff --git a/packages/build-scripts/src/service/build.ts b/packages/build-scripts/src/service/build.ts index 3dd2814..9f83961 100644 --- a/packages/build-scripts/src/service/build.ts +++ b/packages/build-scripts/src/service/build.ts @@ -72,6 +72,20 @@ export = async function(context: Context, options?: IRunOptions): Promise s.compilation && s.compilation.errors && s.compilation.errors.length ? s.compilation : null).filter((a: any) => a); + if (errorCompilations.length) { + console.log('\nStats error'); + errorCompilations.forEach((c: any) => { + console.log(`Webpack task ${c.name} compile error`); + c.errors.forEach((err: any) => { + console.log(err); + }); + }); + console.log(''); + } + } reject(new Error('webpack compile error')); } });