mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(generator): handle nuxt build --no-build
(#7523)
This commit is contained in:
parent
3082567200
commit
68d498b2f4
@ -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\``
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user