diff --git a/src/cli.js b/src/cli.js index 837efdf8728..4e2ff4ce825 100755 --- a/src/cli.js +++ b/src/cli.js @@ -188,6 +188,10 @@ async function bundle(main, command) { // Require bundler here so the help command is fast const Bundler = require('../'); + if (command.name() === 'watch') { + command.watch = true; + } + if (command.name() === 'build') { command.production = true; process.env.NODE_ENV = process.env.NODE_ENV || 'production';