mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
Merge branch 'dev' of github.com:nuxt/nuxt.js into dev
This commit is contained in:
commit
5bc4bdeeb9
@ -170,13 +170,8 @@ const Nuxt = require('nuxt')
|
||||
// Launch nuxt build with given options
|
||||
let config = require('./nuxt.config.js')
|
||||
let nuxt = new Nuxt(config)
|
||||
nuxt.build()
|
||||
.then(() => {
|
||||
// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
|
||||
})
|
||||
.catch((e) => {
|
||||
// An error happened during the build
|
||||
})
|
||||
|
||||
// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
|
||||
```
|
||||
|
||||
Learn more: https://nuxtjs.org/api/nuxt
|
||||
|
Loading…
Reference in New Issue
Block a user