Skip to content

Assets in custom components are not included in build #4368

Answered by brc-dd
szarkans asked this question in Q&A
Discussion options

You must be logged in to vote

Now markdown's files (![alt](src)) not working, but component's are...

ah because that removed the default options

export default defineConfig({
  vue: {
    template: {
      transformAssetUrls: {
        video: ['src', 'poster'],
        source: ['src'],
        img: ['src'],
        image: ['xlink:href', 'href'],
        use: ['xlink:href', 'href'],
        Image: ['src']
      }
    }
  }
})

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@szarkans
Comment options

@szarkans
Comment options

@RoadsideParty
Comment options

@brc-dd
Comment options

Answer selected by szarkans
@szarkans
Comment options

@brc-dd
Comment options

@szarkans
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants