From e87bad4cce4e4835e36257c98e663f61c188b517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 8 May 2020 16:15:26 +0200 Subject: [PATCH] fix(cli): add back flags for generate and add _export flag (#7334) --- packages/cli/src/commands/export.js | 2 +- packages/cli/src/commands/generate.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/export.js b/packages/cli/src/commands/export.js index 253f6e28d0..a06c74b86d 100644 --- a/packages/cli/src/commands/export.js +++ b/packages/cli/src/commands/export.js @@ -21,7 +21,7 @@ export default { const config = await cmd.getNuxtConfig({ dev: false, target: TARGETS.static, - _build: cmd.argv.build + _export: true }) const nuxt = await cmd.getNuxt(config) diff --git a/packages/cli/src/commands/generate.js b/packages/cli/src/commands/generate.js index f25f61b13f..24981fd039 100644 --- a/packages/cli/src/commands/generate.js +++ b/packages/cli/src/commands/generate.js @@ -56,7 +56,8 @@ export default { async run (cmd) { const config = await cmd.getNuxtConfig({ dev: false, - _build: cmd.argv.build + _build: cmd.argv.build, + _generate: true }) if (config.target === TARGETS.static) {