mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix: nuxt-build generate dist/ when spa mode (remove --generate option)
This commit is contained in:
parent
a02935c15f
commit
7d3afb0502
@ -29,7 +29,6 @@ if (argv.help) {
|
|||||||
--analyze, -a Launch webpack-bundle-analyzer to optimize your bundles.
|
--analyze, -a Launch webpack-bundle-analyzer to optimize your bundles.
|
||||||
--spa Launch in SPA mode
|
--spa Launch in SPA mode
|
||||||
--universal Launch in Universal mode (default)
|
--universal Launch in Universal mode (default)
|
||||||
--generate Generate static version after build
|
|
||||||
--config-file, -c Path to Nuxt.js config file (default: nuxt.config.js)
|
--config-file, -c Path to Nuxt.js config file (default: nuxt.config.js)
|
||||||
--help, -h Displays this message
|
--help, -h Displays this message
|
||||||
`)
|
`)
|
||||||
@ -64,7 +63,7 @@ const close = () => {
|
|||||||
process.exit(0)
|
process.exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!argv.generate) {
|
if (options.mode !== 'spa') {
|
||||||
// -- Build only --
|
// -- Build only --
|
||||||
builder
|
builder
|
||||||
.build()
|
.build()
|
||||||
|
Loading…
Reference in New Issue
Block a user