Questions tagged [vite-plugin-pages]
6 questions
1
vote
0 answers
Vite (vite-plugin-ssr) generating separate assets build bundels under corresponding directories (per page MPA)
I'm building an MPA on vite react, using vite-plugin-ssr, for the purpose of html generation during development and build.
Plugin does its job greatly generating htmls, but I also need it in the dist to keep the structure of the files.
What it does…

mk.maria
- 11
- 1
1
vote
1 answer
How can define meta in vite-plugin-pages?
I have some routes and looking for to have access a value through defining meta. And,i also should say i used Vite-plugin-pages for routing in Vue 3.
I read the plugin documentray, and add a route with yaml format as follows:

amir tbi
- 320
- 2
- 14
0
votes
0 answers
How can define redirect inside of extendsRoutes of unplugin-vue-router?
I want to migrate from vite-plugin-pages to unplugin-vue-router. In router folder of my vue3 project, I've defined the following route config in my route folder based vite-plugin-pages as follows:
**
* Route configuration
const router =…

amir tbi
- 320
- 2
- 14
0
votes
0 answers
how to fix router.push() problem in vue-router , it is changing URL but not loading?
I have to refresh the page everytime when router.push() get called, I didn't have this problem , until I added second router.push(), I'm using vite-plugin-pages and vite-vue-layouts?

Alyamin Smail
- 53
- 7
0
votes
1 answer
Page not found in Vite-plugin-page
I'm using Vite-plugin-page for setting my Vue.js routing system. In this plugin, apparently, setting up not found page is not provided.
For this purpose, I created a file named 404.vue in page directory, But, when inserting wrong URL, the page does…

amir tbi
- 320
- 2
- 14
0
votes
0 answers
How do you use named routes in Vue 3 (when using "vite-plugin-pages") to pass an optional Object Prop?
EDIT: Just realized this is an anti-pattern, so I will be looking into alternative methods of solving this, probably by using pinia to store the Object that is bing…

Rio Weber
- 2,757
- 1
- 20
- 28