Skip to content

Commit

Permalink
Exit process if it's just a single build (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeMoorJasper authored and devongovett committed Aug 24, 2018
1 parent 8ea912c commit 41d8759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/parcel-bundler/src/Bundler.js
Expand Up @@ -335,7 +335,7 @@ class Bundler extends EventEmitter {

if (this.options.throwErrors && !this.hmr) {
throw err;
} else if (process.env.NODE_ENV === 'production' || !initialised) {
} else if (!this.options.watch || !initialised) {
await this.stop();
process.exit(1);
}
Expand Down

0 comments on commit 41d8759

Please sign in to comment.