Answer the question
In order to leave comments, you need to log in
How to organize component replacement in Vue.js 2?
We have a folder with components (in this context, it doesn’t matter which ones), we use these components in different pieces of code (of other components).
I'm wondering if it's possible to optimally, without losing the speed of loading the site, so that we can replace certain components. Let's say the components/ folder contains Page.vue, and this component is used in routes.js. We have another overrideComponents/ folder. If it contains a file called Page.vue, then in routes.js you need to load not components/Page.vue, but overrideComponents/Page.vue. I would like to know this from experienced vue.js developers, they may have come across this. (although here another question arises, why is this necessary ... but it is necessary)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question