diff --git a/lib/compiler/webpack-compiler.ts b/lib/compiler/webpack-compiler.ts index e018b4dc1..3ef6d1a91 100644 --- a/lib/compiler/webpack-compiler.ts +++ b/lib/compiler/webpack-compiler.ts @@ -140,6 +140,9 @@ export class WebpackCompiler { return process.exit(1); } console.log(statsOutput); + if (!watchMode && !watch) { + compiler.close(() => {}); + } }; if (watchMode || watch) {