So I have a fully working nuxt app (I cloned this example project: roberto-butti/nuxtjs-helloworld - Obviously I fixed the package.json nuxt version constraints and am running the newest 1.4.0). Now I want to use the --spa
mode to build a single page app, put it into a cordova container and build a (iOS/Android) App out of it.
I am now running into a couple of problems:
dist
dir or of the .nuxt/dist
dir for my app?file://...
- So I tried this "hack" and it works beautifully, the paths to the files work now! All these errors already occur when I only open the index.html
in my desktop browser from the dist
dir - so they are completely Cordova unrelated!
Did anyone try already to combine the SPA mode and cordova and was successful? I am a bit confused now on what I have to do to get this running.
If nuxt/vue-js definitely needs a local webserver to work properly, even in SPA mode, then maybe floatinghotpot/cordova-httpd can help?
best, P
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2706">#c2706</a>)</em></sub></div>