By default, Vue router should support filesystem-based routing. #1631
Closed
yogeshgalav
started this conversation in
Polls
Replies: 2 comments 2 replies
-
@yyx990803
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per design of all new frameworks (NUXT, NEXT, SvelteKit) there is a common thing, filesystem-based routing.
Even though this feature can also be implemented with vite-plugin-pages, it will be more advantageous to include this feature in package itself.
Implementing this feature into vue-router package will give following advantages:
1.) Standarization of folder structure.
2.) Ease of development due to easy finding of files.
3.) Reduction of code, time and effort used to write lot of routes.
I struggled lot of years to find standard way of folder structure in frontend till I came across filesystem-based routing. It wouldn't be the same case if vue-documentation or vue-router had told me to do so in beginning. Also, I would have saved so many hours and effort writing frontend routes.
It's better to give developers flexibility but it's best to set some standards.
Above mentioned advantages will make Vue the next era framework.
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions