chore(readme): Add await nuxt.ready()

This commit is contained in:
Thomas Reichling 2019-03-24 11:25:15 +01:00 committed by GitHub
parent 77dcfe6ee8
commit 45f1edd4cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ let config = require('./nuxt.config.js')
config.dev = (process.env.NODE_ENV !== 'production') config.dev = (process.env.NODE_ENV !== 'production')
let nuxt = new Nuxt(config) let nuxt = new Nuxt(config)
await nuxt.ready()
// Start build process (only in development) // Start build process (only in development)
if (config.dev) { if (config.dev) {