fix: with-feathers not startup with listening 3000

This commit is contained in:
Clark Du 2017-10-30 18:01:23 +08:00
parent c0e9e66eef
commit 147d210c0a
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -12,7 +12,7 @@ config.dev = process.env.NODE_ENV !== 'production'
const nuxt = new Nuxt(config) const nuxt = new Nuxt(config)
if (config.dev) { if (config.dev) {
const builder = new Builder(nuxt) const builder = new Builder(nuxt)
builder.build() builder.build().then(() => process.emit('nuxt:build:done'))
} else { } else {
process.nextTick(() => process.emit('nuxt:build:done')) process.nextTick(() => process.emit('nuxt:build:done'))
} }