Commit 925ab726 authored by chyipin's avatar chyipin Committed by Dan Abramov
Browse files

Use real build path name in build output (#1478)

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.
parent 8d413283
4 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file,!1933Add note about installing watchman
Showing with 3 additions and 2 deletions
+3 -2
...@@ -223,7 +223,8 @@ function build(previousSizeMap) { ...@@ -223,7 +223,8 @@ function build(previousSizeMap) {
console.log(' ' + chalk.green('"homepage"') + chalk.cyan(': ') + chalk.green('"http://myname.github.io/myapp"') + chalk.cyan(',')); console.log(' ' + chalk.green('"homepage"') + chalk.cyan(': ') + chalk.green('"http://myname.github.io/myapp"') + chalk.cyan(','));
console.log(); 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('You may also serve it locally with a static server:')
console.log(); console.log();
if (useYarn) { if (useYarn) {
...@@ -231,7 +232,7 @@ function build(previousSizeMap) { ...@@ -231,7 +232,7 @@ function build(previousSizeMap) {
} else { } else {
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server'); 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(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
console.log(); console.log();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment