vue.js - nuxt build --spa vs nuxt generate -
what difference between
nuxt build --spa vs
nuxt generate vs
nuxt generate --spa i trying compile 3 different variations:
1. regular nuxt ssr 2. prerendered spa 3. spa without prerendering i struggling find appropriate commands it
as show in the docs, above commands correspond to:
nuxt build: build application webpack , minify js & css (for production).nuxt generate: build application , generate every route html file (used static hosting).
the --spa flag doesn't seem covered in docs themselves, the generator help outlines, without further explanation:
options
--spalaunch in spa mode
given information, seem following commands should cover needs, haven't tested them myself @ moment:
- regular nuxt ssr:
nuxt build - prerendered spa:
nuxt generate - spa without prerendering:
nuxt build --spa
take of grain of salt, however, nuxt team is notorious having out-of-date documentation.
Comments
Post a Comment