mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 19:04:48 +00:00
16 lines
306 B
TypeScript
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'
|
||
|
}
|