From 01eeb61394d57c8dd3f1ab0b3b4ecf28988062aa Mon Sep 17 00:00:00 2001 From: Dan Abramov <dan.abramov@gmail.com> Date: Tue, 2 Aug 2016 15:45:46 +0100 Subject: [PATCH] =?UTF-8?q?Tweak=20npm=20start=20to=20make=20it=20clear=20?= =?UTF-8?q?it=E2=80=99s=20not=20optimized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: https://twitter.com/sprjrx/status/760481328886272004 --- scripts/start.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/start.js b/scripts/start.js index b5fa51d14..dd09ab51b 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -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; } -- GitLab