Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/react-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down