Skip to content

Commit

Permalink
use NODE_ENV = development by default on parcel serve
Browse files Browse the repository at this point in the history
  • Loading branch information
marcioj committed Dec 7, 2017
1 parent 4cc343b commit 29f8df7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ function bundle(main, command) {

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

const bundler = new Bundler(main, command);
Expand Down

0 comments on commit 29f8df7

Please sign in to comment.