mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-13 09:00:30 +08:00
Setting a dynamic port value for the pushstate-server URL text (#1628)
* Setting a dynamic port value for the pushstate-server URL text after a build is completed * Fixing merge conflict
This commit is contained in:
committed by
Dan Abramov
parent
b609ac96fe
commit
dbf17fd0e4
2
packages/react-scripts/scripts/build.js
vendored
2
packages/react-scripts/scripts/build.js
vendored
@@ -233,7 +233,7 @@ function build(previousSizeMap) {
|
||||
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server');
|
||||
}
|
||||
console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build);
|
||||
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
|
||||
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:' + (process.env.PORT || 9000)
|
||||
console.log();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user