Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
adjust log for electron app
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 15, 2017
1 parent 0470a57 commit b1582f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b1582f7

Please sign in to comment.