Skip to content

webpack path aliases for <style></style> in Component.vue files #7400

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

Closed
paulkunitsky opened this issue Jan 6, 2018 · 2 comments
Closed

Comments

@paulkunitsky
Copy link

paulkunitsky commented Jan 6, 2018

What problem does this feature solve?

Webpack aliases work properly for import statements in <script></script>, however not with <style></style> or <template></template> sections of Component.vue. It would be great to add this feature, so Component.vue works fine even if its location changes. That would be super cool. Btw I love Vue, thanks a lot for a great work!

What does the proposed API look like?

<style> .jumbotron { background: url('@/assets/images/welcome.jpg') center / cover; } </style> <template> <img src="@/assets/images/search.svg" alt="search button"> </template>

+ for other cases (might not be listed)

@posva
Copy link
Member

posva commented Jan 6, 2018

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server, gitter or StackOverflow.

@yyx990803
Copy link
Member

Moved to vuejs/vue-loader#1113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants