From 68d498b2f49bb1dd580b72c904468142d8107625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 15 Jun 2020 21:42:42 +0200 Subject: [PATCH] fix(generator): handle nuxt build `--no-build` (#7523) --- packages/generator/src/generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/generator/src/generator.js b/packages/generator/src/generator.js index e50d945fe1..6a67f63631 100644 --- a/packages/generator/src/generator.js +++ b/packages/generator/src/generator.js @@ -83,7 +83,7 @@ export default class Generator { ) } const config = this.getBuildConfig() - if (!config || config.target !== TARGETS.static) { + if (!config || (config.target !== TARGETS.static && !this.options._legacyGenerate)) { throw new Error( `In order to use \`nuxt export\`, you need to run \`nuxt build --target static\`` )