Nuxt/examples/programmatic/scripts/build.js

9 lines
150 B
JavaScript
Raw Normal View History

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