Skip to content

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

@paulkunitsky

Description

@paulkunitsky

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions