Running a boot file prior to router initialization in Quasar CLI #17936
Unanswered
JoseGoncalves
asked this question in
Ideas / Proposals
Replies: 1 comment
-
After looking at the Quasar's source code for the booting process, one cleaner way to support this use case would be to pass the Vue |
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
-
Hi,
I've hit a similar issue that the one reported at #14914, were I need to initialize a Vue Plugin before initializing the Vue Router in Quasar CLI. It seems that the current Quasar boot structure does not allow this, as the boot files are only executed after the router is initiated. My workaround for this was as following:
router/index.js
boot/vue-plugin.js
Is this how it's supposed to handle this scenario in Quasar CLI, or is there a better (proper) way?
A drawback of my workaround is that other boot files for my app will not be able to access the Router instance.
Beta Was this translation helpful? Give feedback.
All reactions