Reputation: 47
I've got the problem, whenever I change the path in vue.config.js and vue-router the page doesn't work on the local server in XAMMP. I've changed the publicPath and outputPath.
More details here, I put this link because nobody has responded. In the link below there's also a link to the repository on GitHub:
Thank you for any help. I got badly stacked here.
Upvotes: 1
Views: 871
Reputation: 2244
While using vue-router you also need to set router base property in router's index file. Have you done that?? const router = new Router({ mode: 'history', base: /foldername }) Refer the following link for more details: https://router.vuejs.org/api/#base
Upvotes: 1