Merge branch 'tapable' of github.com:Atinux/nuxt.js into tapable

This commit is contained in:
Sébastien Chopin 2017-06-18 20:22:38 +02:00
commit 7eebeefc39

View File

@ -1,7 +1,7 @@
import http from 'http'
import connect from 'connect'
import path from 'path'
import chalk from 'chalk'
import http from "http";
import connect from "connect";
import path from "path";
import chalk from "chalk";
class Server {
constructor (nuxt) {
@ -70,7 +70,7 @@ class Server {
this.server.listen(port, host, () => {
let _host = host === '0.0.0.0' ? 'localhost' : host
// eslint-disable-next-line no-console
console.log('\n' + chalk.bold(chalk.bgBlue.white(' OPEN ') + chalk.blue(` http://${_host}:${port}\n`)))
console.log('\n' + chalk.bold(chalk.bgBlue.black(' OPEN ') + chalk.blue(` http://${_host}:${port}\n`)))
})
})
.catch(this.nuxt.errorHandler)