Skip to content

Support Vuetify's 'v-img' 'src' attribute in 'transformToRequire` defaults #1518

Closed
@brianhelba

Description

@brianhelba

What problem does this feature solve?

vue-loader does not automatically require assets referenced in the src attribute of Vuetify's v-img tag.

Given that Vuetify is a prominent part of Vue's ecosystem and v-img is often a drop-in replacement for img, supporting this natively would be desirable.

Current workarounds to this problem are not seamless and have a more awkward syntax.

What does the proposed API look like?

No API surface changes are required.

Template markup looking like <v-img src="@/assets/logo.png"> will now compile properly.

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