fix(cli): add back flags for generate and add _export flag (#7334)

This commit is contained in:
Sébastien Chopin 2020-05-08 16:15:26 +02:00 committed by GitHub
parent 29ebccaa65
commit e87bad4cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default {
const config = await cmd.getNuxtConfig({ const config = await cmd.getNuxtConfig({
dev: false, dev: false,
target: TARGETS.static, target: TARGETS.static,
_build: cmd.argv.build _export: true
}) })
const nuxt = await cmd.getNuxt(config) const nuxt = await cmd.getNuxt(config)

View File

@ -56,7 +56,8 @@ export default {
async run (cmd) { async run (cmd) {
const config = await cmd.getNuxtConfig({ const config = await cmd.getNuxtConfig({
dev: false, dev: false,
_build: cmd.argv.build _build: cmd.argv.build,
_generate: true
}) })
if (config.target === TARGETS.static) { if (config.target === TARGETS.static) {