8000 update nuxt build · javascriptit/examples-1@ec32a9f · GitHub
[go: up one dir, main page]

Skip to content

Commit ec32a9f

Browse files
committed
update nuxt build
1 parent e9f71f2 commit ec32a9f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const Nuxt = require('nuxt')
1+
const {Nuxt, Builder} = require('nuxt')
22
const options = require('../nuxt.config')
3-
const nuxt = new Nuxt(options)
4-
5-
nuxt.build().then(function () {
6-
F.middleware('nuxt', nuxt.render)
7-
})
3+
const nuxt = new Nuxt(options), builder = new Builder(nuxt)
4+
builder.build()
5+
F.middleware('nuxt', nuxt.render)

0 commit comments

Comments
 (0)
0