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:
Matt Crampton
2017-02-24 14:28:36 -08:00
committed by Joe Haddad
parent 913679bf69
commit 1fe3e14460

View File

@@ -224,7 +224,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();
}
});