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
--spa launch in spa mode


given information, seem following commands should cover needs, haven't tested them myself @ moment:

  1. regular nuxt ssr: nuxt build
  2. prerendered spa: nuxt generate
  3. spa without prerendering: nuxt build --spa

take of grain of salt, however, nuxt team is notorious having out-of-date documentation.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -