Skip to content

Add some syntax sugar #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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