From b1582f7df2443a6527c6d3bf35c65ee30422a45d Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Wed, 15 Feb 2017 15:08:37 +0800 Subject: [PATCH] adjust log for electron app --- lib/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 341a6257..9382f970 100644 --- a/lib/index.js +++ b/lib/index.js @@ -127,7 +127,11 @@ function start(cliOptions) { // eslint-disable-line complexity console.log(chalk.bgRed.black(' ERROR '), 'Compiling failed!') } else { console.log(stats.toString(options.stats)) - console.log(chalk.bold(`\n> Open http://localhost:${options.port}\n`)) + if (webpackConfig.target === 'electron-renderer') { + console.log(chalk.bold(`\n> Open Electron in another tab\n`)) + } else { + console.log(chalk.bold(`\n> Open http://localhost:${options.port}\n`)) + } console.log(chalk.bgGreen.black(' DONE '), 'Compiled successfully!') } console.log()