Breaking Changes
- The layouts has been moved to the layouts/ directory for better architecting. Which have to move your
pages/_app.vue
tolayouts/app.vue
andpages/_error.vue
tolayouts/error.vue
- When used programmatically, you now have to call
nuxt.build()
becausenew Nuxt(options)
is not launching anymore the build automatically.
const Nuxt = require('Nuxt')
const nuxt = new Nuxt(options)
nuxt.build()
.then(() => {
app.use(nuxt.render)
})
Features
- Add
nuxt.renderAndGetWindow(jsdom, url)
method to render the url and sent back thewindow
object, useful for test purposes (see examples/with-ava/)
Examples
- Add authenticated routes example: https://nuxtjs.org/examples/auth-routes