Static GitHub Issues

[828] template import modules use absolute path

prev: v1.0 plugins: window.onNuxtReady is undefined
next: Add lang attribute to html wrapper

in my situation,I prebuild nuxt app with CI tools like Jenkins

result:

//.nuxt/router.js
const _24c434bb = () => import('/foo/bar/pages/xxx.vue' )

then, my build task would transport all files to production environment, which directory structure is different with build env, so my app can not run correctly

what i expected is relative path

//.nuxt/router.js
const _24c434bb = () => import('../pages/xxx.vue' )

influenced files:

  • components/nuxt.vue
  • App.vue
  • index.js
  • router.js
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c715">#c715</a>)</em></sub></div>