Reputation: 69
I want to serve different vue pages from server by different routes. For now I'm using only one route (/static) to serve vue files for one "page" that contains vue-router.
I can't go one like this because the application should use cookies to verify access rights to different pages.
Upvotes: 3
Views: 7874
Reputation: 2090
Multi-Page apps are now supported very well with vue-cli v3: https://cli.vuejs.org/guide/html-and-static-assets.html#building-a-multi-page-app
Upvotes: 2
Reputation: 69
Found the solution for me. Unfortunately not a build in one. I just ran build process for two different builds with two different webpack configs which in their turn have different entry and output properties. Just in case someones find this helpful.
Upvotes: 1