mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-16 19:09:05 +08:00
Tweak npm start to make it clear it’s not optimized
Ref: https://twitter.com/sprjrx/status/760481328886272004
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user