Nuxt/packages/nuxi/src/commands/generate.ts

15 lines
345 B
TypeScript
Raw Normal View History

import buildCommand from './build'
import { defineNuxtCommand } from './index'
export default defineNuxtCommand({
meta: {
name: 'generate',
usage: 'npx nuxi generate [rootDir]',
description: 'Build Nuxt and prerender static routes'
},
async invoke (args) {
args.prerender = true
await buildCommand.invoke(args)
}
})