payload: {"action":"created","issue":{"url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin/issues/357","repository_url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin","labels_url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin/issues/357/comments","events_url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin/issues/357/events","html_url":"https://github.com/chrisvfritz/prerender-spa-plugin/issues/357","id":533666749,"node_id":"MDU6SXNzdWU1MzM2NjY3NDk=","number":357,"title":"Plugin, i18n and relative static resource path","user":{"login":"DummyCo","id":3989453,"node_id":"MDQ6VXNlcjM5ODk0NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/3989453?v=4","gravatar_id":"","url":"https://api.github.com/users/DummyCo","html_url":"https://github.com/DummyCo","followers_url":"https://api.github.com/users/DummyCo/followers","following_url":"https://api.github.com/users/DummyCo/following{/other_user}","gists_url":"https://api.github.com/users/DummyCo/gists{/gist_id}","starred_url":"https://api.github.com/users/DummyCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DummyCo/subscriptions","organizations_url":"https://api.github.com/users/DummyCo/orgs","repos_url":"https://api.github.com/users/DummyCo/repos","events_url":"https://api.github.com/users/DummyCo/events{/privacy}","received_events_url":"https://api.github.com/users/DummyCo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-12-05T23:59:38Z","updated_at":"2019-12-06T00:38:01Z","closed_at":"2019-12-06T00:38:01Z","author_association":"NONE","body":"Have no luck configuring relative paths with `prerender-spa-plugin` and `Vue.js`, all the generated route indices are referring resources relative to the current path and failing as a result:\r\n\r\n![image](https://user-images.githubusercontent.com/3989453/70284074-6fd12980-17cb-11ea-82e3-d0ceec94416c.png)\r\n\r\n![image](https://user-images.githubusercontent.com/3989453/70284139-b0c93e00-17cb-11ea-8940-e3a62139f5de.png)\r\n\r\nNo combinations of `dist` path representation worked for now:\r\n`staticDir: path.join(__dirname, 'dist')`\r\nAny ideas?\r\n\r\nPlugin config:\r\n```\r\n      new PrerenderSPAPlugin({\r\n        staticDir: path.join(__dirname, 'dist'),\r\n        routes: ['/', '/ru'],\r\n        minify: {\r\n          collapseBooleanAttributes: true,\r\n          collapseWhitespace: true,\r\n          decodeEntities: true,\r\n          keepClosingSlash: true,\r\n          sortAttributes: true\r\n        }\r\n      })\r\n```\r\nRoutes:\r\n```\r\nexport default new Router({\r\n  routes,\r\n  mode: 'history',\r\n  base: __dirname,\r\n})\r\n```\r\n```\r\nexport default [\r\n  {\r\n    path: '/:lang(en|ru)?',\r\n    component: {\r\n      template: '<router-view />'\r\n    },\r\n    beforeEnter(to, from, next) {\r\n      let lang = to.params.lang;\r\n      if (i18n.locale !== lang) {\r\n        i18n.locale = lang\r\n      }\r\n      return next()\r\n    },\r\n    children: [\r\n      {\r\n        path: '',\r\n        name: 'Home',\r\n        component: load('Home')\r\n      },\r\n    ]\r\n  }\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin/issues/comments/562381267","html_url":"https://github.com/chrisvfritz/prerender-spa-plugin/issues/357#issuecomment-562381267","issue_url":"https://api.github.com/repos/chrisvfritz/prerender-spa-plugin/issues/357","id":562381267,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MjM4MTI2Nw==","user":{"login":"DummyCo","id":3989453,"node_id":"MDQ6VXNlcjM5ODk0NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/3989453?v=4","gravatar_id":"","url":"https://api.github.com/users/DummyCo","html_url":"https://github.com/DummyCo","followers_url":"https://api.github.com/users/DummyCo/followers","following_url":"https://api.github.com/users/DummyCo/following{/other_user}","gists_url":"https://api.github.com/users/DummyCo/gists{/gist_id}","starred_url":"https://api.github.com/users/DummyCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DummyCo/subscriptions","organizations_url":"https://api.github.com/users/DummyCo/orgs","repos_url":"https://api.github.com/users/DummyCo/repos","events_url":"https://api.github.com/users/DummyCo/events{/privacy}","received_events_url":"https://api.github.com/users/DummyCo/received_events","type":"User","site_admin":false},"created_at":"2019-12-06T00:38:01Z","updated_at":"2019-12-06T00:38:01Z","author_association":"NONE","body":"Nevermind, my fault.\r\nFixed with `publicPath: '/'` instead of `publicPath: ''`"}}
other: {"actor":{"display_login":"DummyCo"}}