Static GitHub Issues

[1712] Allow to run from file system?

prev: Feature: ability to specify a scroll offset to scrollBehavior when passing selector
next: How generate pages in flat structure?

I would LOVE to use Vue + Nuxt to create my Unreal Engine 4 user interfaces in Coherent GT ( http://coherent-labs.com/coherent-gt/ ). I have been able to get vanilla Vue to run just fine (took a bit of tweaking, but actually works very well).

Nuxt, however, is more troublesome. I get that Vue and Nuxt are designed to run in a web server. However, I feel this is a good use case to be able to run apps from the file system.

Take, for example, this structure:

~/pages/index.vue
~/pages/otherpage.vue

Each has a link to each other:

index.vue: <nuxt-link to="/otherpage">Other Page</nuxt-link>
otherpage.vue: <nuxt-link to="/">Index</nuxt-link>

Upon nuxt generate, you get:

~/dist/index.html
~/dist/otherpage/index.html
index.html: <a href="/otherpage">Other Page</a>
otherpage/index.html: <a href="/">Index</a>

The issue I am having is that the URL cannot be resolved: <a href="/otherpage">Other Page</a>

I need it to render as: <a href="/otherpage/index.html">Other Page</a>

Coherent GT has no support for a default/index file specification, as it treats everything as being loaded from the file system.

Nuxt would work great if I had an option to generate static content and routes with the full path ("/otherpage/index.html" rather than "/otherpage").

A bit more context: Playerunknown's Battlegrounds uses Coherent GT and Angular for their game UI.

<!--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/c1536">#c1536</a>)</em></sub></div>