In my current project I am trying to implement the following:
Let's assume the following file structure:
/src/
/src/components/MyComponent.vue
/src/overwrites/components/MyComponent.vue
(in any *.vue file):
import MyComponent from '@/components/MyComponent.vue'.
This import should, if the same file exists in the parallel existing directory "overwrites", import it instead of the one from /src/components/.
To benefit from hot reloading etc, I want to solve this via webpack.
However, how to extend the vue-loader or get in front of it I haven't figured out.