Tweak npm start to make it clear it’s not optimized

Ref: https://twitter.com/sprjrx/status/760481328886272004
This commit is contained in:
Dan Abramov
2016-08-02 15:45:46 +01:00
parent 44b8313213
commit 01eeb61394

View File

@@ -84,8 +84,14 @@ function setupCompiler(port) {
if (!hasErrors && !hasWarnings) {
console.log(chalk.green('Compiled successfully!'));
console.log();
console.log('The app is running at http://localhost:' + port + '/');
console.log('The app is running at:');
console.log();
console.log(' ' + chalk.cyan('http://localhost:' + port + '/'));
console.log();
console.log('Note that the development build is not optimized.');
console.log('To create a production build, use ' + chalk.cyan('npm run build') + '.');
console.log();
return;
}