Home

Issue: 2015

Unable to generate static HTML files in SPA mode.

[issue link]

I’m trying to generate 100% static HTML files for hosting on Netlify. However, when I run nuxt generate --spa, none of my HTML is being prerendered in the body. I’m seeing a bunch of assets in an HTML file per page, but none of my static HTML in the Vue component is being loaded into these files.

When I run nuxt generate with out --spa, my pages are generated correctly, but I don’t want to run in SSR mode, since my code is very client-side-specific, and I don’t want to worry about checking process.browser for everything.

I also tried running nuxt build --spa, but got the same undesired result. Am I misunderstanding something here? Basically, I just want all my static Vue component content to be generated into HTML when it can be.

This question is available on Nuxt.js community (#c1790)