Skip to content

Commit

Permalink
Merge branch 'leptoquark1-fix/868-webpack-compiler-system-errors'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Nov 4, 2020
2 parents ee6f823 + 0dff378 commit 6f36684
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/compiler/webpack-compiler.ts
Expand Up @@ -75,6 +75,12 @@ export class WebpackCompiler {
const compiler = webpack(webpackConfiguration);

const afterCallback = (err: Error | undefined, stats: webpack.Stats | undefined) => {
if (err && stats === undefined) {
// Could not complete the compilation
// The error caught is most likely thrown by underlying tasks
console.log(err);
return process.exit(1);
}
const statsOutput = stats!.toString({
chunks: false,
colors: true,
Expand Down

0 comments on commit 6f36684

Please sign in to comment.