Nuxt/packages/cli/src/commands/build.ts
2021-04-09 17:52:45 +02:00

16 lines
306 B
TypeScript

import { buildNuxt, loadNuxt } from '../utils/nuxt'
export async function invoke (args) {
const nuxt = await loadNuxt({
rootDir: args._[0],
for: 'build'
})
await buildNuxt(nuxt)
}
export const meta = {
usage: 'nu build [rootDir]',
description: 'Build nuxt for production deployment'
}