mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
Fix small typos
This commit is contained in:
parent
51e603308a
commit
840a6cfe00
@ -57,7 +57,7 @@ options.dev = false // Force production mode (no webpack middleware called)
|
|||||||
|
|
||||||
// Check if project is built for production
|
// Check if project is built for production
|
||||||
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist' )
|
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist' )
|
||||||
if (!fs.existsSync(join(distDir,'server-bundle.json'))) {
|
if (!fs.existsSync(join(distDir, 'server-bundle.json'))) {
|
||||||
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
|
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
4
index.js
4
index.js
@ -14,9 +14,9 @@ process.noDeprecation = true
|
|||||||
|
|
||||||
// Require Core
|
// Require Core
|
||||||
const Core = require('./dist/core.js')
|
const Core = require('./dist/core.js')
|
||||||
Object.assign(exports, Core.default || Core)
|
Object.assign(exports, Core)
|
||||||
|
|
||||||
// Require Builder
|
// Require Builder
|
||||||
// TODO: conditionally do this when builder available
|
// TODO: conditionally do this when builder available
|
||||||
const Builder = require('./dist/builder.js')
|
const Builder = require('./dist/builder.js')
|
||||||
Object.assign(exports, Builder.default || Builder)
|
Object.assign(exports, Builder)
|
||||||
|
@ -70,7 +70,7 @@ class Server {
|
|||||||
this.server.listen(port, host, () => {
|
this.server.listen(port, host, () => {
|
||||||
let _host = host === '0.0.0.0' ? 'localhost' : host
|
let _host = host === '0.0.0.0' ? 'localhost' : host
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log('\n' + chalk.bold(chalk.bgBlue.black(' OPEN ') + chalk.blue(` http://${_host}:${port}\n`)))
|
console.log('\n' + chalk.bold(chalk.bgBlue.white(' OPEN ') + chalk.blue(` http://${_host}:${port}\n`)))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(this.nuxt.errorHandler)
|
.catch(this.nuxt.errorHandler)
|
||||||
|
Loading…
Reference in New Issue
Block a user