diff --git a/bin/cmd.js b/bin/cmd.js index 98a5e01c..a9f30693 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -52,7 +52,8 @@ program startServer(); return; // early terminate, don't build }; - build.watch(cmd, program.config, function(err, stats) { + const { config: userWebpackConfig, babelrc: useBabelrc = true} = program; + build.watch(cmd, { userWebpackConfig, useBabelrc}, function(err, stats) { if (err) { console.error(err); return;