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 4808c0c commit 14fabe9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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 14fabe9

Please sign in to comment.