mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
Update comment
This commit is contained in:
parent
8e3bd5ffe6
commit
8e157c7c0b
@ -4,13 +4,13 @@ const { Nuxt, Builder } = require('nuxt')
|
|||||||
const host = process.env.HOST || '127.0.0.1'
|
const host = process.env.HOST || '127.0.0.1'
|
||||||
const port = process.env.PORT || 3000
|
const port = process.env.PORT || 3000
|
||||||
|
|
||||||
// Import and Set Nuxt.js options
|
// Import and set Nuxt.js options
|
||||||
let config = require('./nuxt.config.js')
|
let config = require('./nuxt.config.js')
|
||||||
config.dev = !(process.env.NODE_ENV === 'production')
|
config.dev = !(process.env.NODE_ENV === 'production')
|
||||||
|
|
||||||
const nuxt = new Nuxt(config)
|
const nuxt = new Nuxt(config)
|
||||||
|
|
||||||
// Start build process if
|
// Start build process in dev mode
|
||||||
if (config.dev) {
|
if (config.dev) {
|
||||||
const builder = new Builder(nuxt)
|
const builder = new Builder(nuxt)
|
||||||
builder.build()
|
builder.build()
|
||||||
|
Loading…
Reference in New Issue
Block a user