Skip to content

Commit 01eeb61

Browse files
committed
Tweak npm start to make it clear it’s not optimized
Ref: https://twitter.com/sprjrx/status/760481328886272004
1 parent 44b8313 commit 01eeb61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/start.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,14 @@ function setupCompiler(port) {
8484
if (!hasErrors && !hasWarnings) {
8585
console.log(chalk.green('Compiled successfully!'));
8686
console.log();
87-
console.log('The app is running at http://localhost:' + port + '/');
87+
console.log('The app is running at:');
8888
console.log();
89+
console.log(' ' + chalk.cyan('http://localhost:' + port + '/'));
90+
console.log();
91+
console.log('Note that the development build is not optimized.');
92+
console.log('To create a production build, use ' + chalk.cyan('npm run build') + '.');
93+
console.log();
94+
8995
return;
9096
}
9197

0 commit comments

Comments
 (0)