-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for absolute paths #6
Comments
I second this. I have an alias I think the issues is around these lines : vue-inheritance-loader/src/index.js Lines 77 to 79 in a6b5db8
|
Sorry for taking so long to answer. I'll try to make it work with jest too and post here any updates |
I've uploaded a version on master, would you care to try it before I publish a new npm version? Also, do any of you use this together with jest? |
@mrodal ,your job is very cool for Vue template extends, please publish this with a new npm version now. I use this successfully in nuxt,please publish lastest version include absolute @. By the way,Is it true that we can not find any other official solution for Vue template extends function except your plugin? |
Well, it took me a long time but it's here, the new version is published (v0.1.7) please let me know if you encounter any problems! |
If your inheriting component is deeply nested inside your folder structure you may end up with an 'extends' statement looking like this:
<template extends="../../../../../../BaseComponents.vue">
which will break if you now move the child.
The BaseComponent should be accessable with an absolute path beginning from the root e.g.:
@/Widgets/BaseComponent.vue
where '@/' points to 'src/'The text was updated successfully, but these errors were encountered: