fix: nuxt-build generate dist/ when spa mode (remove --generate option)

This commit is contained in:
Sébastien Chopin 2018-04-13 13:21:58 +02:00
parent a02935c15f
commit 7d3afb0502

View File

@ -29,7 +29,6 @@ if (argv.help) {
--analyze, -a Launch webpack-bundle-analyzer to optimize your bundles.
--spa Launch in SPA mode
--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)
--help, -h Displays this message
`)
@ -64,7 +63,7 @@ const close = () => {
process.exit(0)
}
if (!argv.generate) {
if (options.mode !== 'spa') {
// -- Build only --
builder
.build()