diff --git a/bin/react-scripts.js b/bin/react-scripts.js index 3f924225ae3..91b448143df 100644 --- a/bin/react-scripts.js +++ b/bin/react-scripts.js @@ -8,6 +8,11 @@ switch (script) { case 'build': case 'start': case 'eject': + +/* We create a new node process, that will fire of our commands as well as +adding incoming arugments from the action. +*/ + spawn( 'node', [path.resolve(__dirname, '..', 'scripts', script)].concat(args), diff --git a/scripts/build.js b/scripts/build.js index 6ac64886a75..7e0059db15b 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -21,8 +21,7 @@ rimrafSync(relative + '/build'); webpack(config).run(function(err, stats) { if (err) { - console.error('Failed to create a production build. Reason:'); - console.error(err.message || err); + console.error('Failed to create a production build. Reason: %s', err.message || err); process.exit(1); }