mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
chore(readme): add nuxt.ready() for middleware (#5363)
This commit is contained in:
commit
83bc55d1b1
@ -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)
|
||||||
|
nuxt.ready().catch(console.error)
|
||||||
|
|
||||||
// Start build process (only in development)
|
// Start build process (only in development)
|
||||||
if (config.dev) {
|
if (config.dev) {
|
||||||
|
Loading…
Reference in New Issue
Block a user