Make folder-based routing default for Vue-router. #486
yogeshgalav
started this conversation in
General
Replies: 1 comment
-
I believe it is impossible for vue-router to provide this feature. After all, vue-router is a pure runtime library which does not introduce a build step. There are already many awesome plugins to make this possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem:
My team and colleagues have wasted a lot of time in finalizing ideal folder structure,
We also wasted our time, effort and money in writing and maintaining routes manually,
Solution:
All these time and effort would have been saved if Vue documentation had suggested,
Or Vue-router had by default strategy to save 1000's of line of code.
We have known that Nuxt provides this awesome thing but didn't want to migrate.
There are Vite plugin and Vue packages available,
but it would be helpful to beginners if some official message is given directly in documentation.
**Or if folder-based routing is default in Vue-router. **
These would not be a breaking change as manually written routes would still work.
But would facilitate future work.
Beta Was this translation helpful? Give feedback.
All reactions