Nuxt/packages/cli/src/commands/build.ts

16 lines
306 B
TypeScript
Raw Normal View History

2021-04-09 15:52:45 +00:00
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'
}