Skip to content

Commit

Permalink
Use real build path name in build output (#1478)
Browse files Browse the repository at this point in the history
Use the configured appBuild value in paths.js instead of hard-coding it to 'build'.  This is helpful for the ejected case where the appBuild path is changed to another folder name.
  • Loading branch information
chyipin authored and Timer committed Feb 24, 2017
1 parent bf11b14 commit fd248ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-scripts/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,16 @@ function build(previousSizeMap) {
console.log(' ' + chalk.green('"homepage"') + chalk.cyan(': ') + chalk.green('"http://myname.github.io/myapp"') + chalk.cyan(','));
console.log();
}
console.log('The ' + chalk.cyan('build') + ' folder is ready to be deployed.');
var build = path.relative(process.cwd(), paths.appBuild);
console.log('The ' + chalk.cyan(build) + ' folder is ready to be deployed.');
console.log('You may also serve it locally with a static server:')
console.log();
if (useYarn) {
console.log(' ' + chalk.cyan('yarn') + ' global add pushstate-server');
} else {
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server');
}
console.log(' ' + chalk.cyan('pushstate-server') + ' build');
console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build);
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
console.log();
}
Expand Down

0 comments on commit fd248ec

Please sign in to comment.