Nuxt/examples/programmatic/scripts/dev.js
2020-01-19 09:36:06 +01:00

10 lines
168 B
JavaScript

const { loadNuxt, build } = require('nuxt')
const main = async () => {
const nuxt = await loadNuxt({ for: 'dev' })
build(nuxt)
await nuxt.listen(3000)
}
main()