mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
removed build.then()
alpha3 no longer returns a promise on the nuxt constructor.
This commit is contained in:
parent
c4613ce34b
commit
f50d5673d9
@ -170,13 +170,8 @@ const Nuxt = require('nuxt')
|
|||||||
// Launch nuxt build with given options
|
// Launch nuxt build with given options
|
||||||
let config = require('./nuxt.config.js')
|
let config = require('./nuxt.config.js')
|
||||||
let nuxt = new Nuxt(config)
|
let nuxt = new Nuxt(config)
|
||||||
nuxt.build()
|
|
||||||
.then(() => {
|
// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
|
||||||
// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
|
|
||||||
})
|
|
||||||
.catch((e) => {
|
|
||||||
// An error happened during the build
|
|
||||||
})
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Learn more: https://nuxtjs.org/api/nuxt
|
Learn more: https://nuxtjs.org/api/nuxt
|
||||||
|
Loading…
Reference in New Issue
Block a user