Timo
How to enable SPA mode
Hello, I am trying to configure nuxt to output a simple SPA similar to a default vite build. Things I've tried:
- ssr: false disables serverside rendering, but nitro is still being built
- nitro.static: true statically generates all pages
- router.options.hashMode: true to enable the hash based clientside routing
None of these (in combination) give me the desired build output. All i am looking for is a single index.html entrypoint. Note that i am not working on a regular web app and i pretty much only use nuxt for the file based routing and auto imports. The targeted use case is a user interface embedded into a game using chromium embedded framework.
Best regards
6 replies