What is the difference between
nuxt build
vs
nuxt generate
vs
nuxt build --spa
I am trying to compile three different variations:
1. regular nuxt with ssr
2. prerendered spa
3. spa without prerendering
I am struggling to find the appropriate commands for it
As shown in the docs, the above commands correspond to:
The
--spa
flag doesn't seem to be covered in the docs themselves, however the generator help outlines, without further explanation:Given this information, it would seem the following commands should cover your needs, however I haven't tested them myself at the moment:
nuxt build
nuxt generate
nuxt build --spa
Take all of this with a grain of salt, however, as the Nuxt team is notorious for having out-of-date documentation.