Skip to content

Commit

Permalink
fix build not exiting in dev env (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorangajic authored and devongovett committed Jul 1, 2018
1 parent 4a6c475 commit 5de898a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/parcel/src/cli.js
Expand Up @@ -177,6 +177,7 @@ async function bundle(main, command) {
const Bundler = require('../');

if (command.name() === 'build') {
command.production = true;
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
} else {
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
Expand Down

0 comments on commit 5de898a

Please sign in to comment.