-
I have some components from PrimeVue like Card, that uses Components are perfectly working, globally registered, <Card style="width: 25rem; overflow: hidden" class="m-0">
<template #header>
<Image alt="user header" src="/assets/info/donate/chainsawman.png" preview />
</template>
</Card> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#asset-url-handling try something like this, but I'm not sure if it works with custom components // .vitepress/config.ts
export default defineConfig({
vue: {
template: {
transformAssetUrls: {
Image: ['src']
}
}
}
}) If it doesn't work you'll need to copy your assets directory to dist after building. You can either do that manually or adjust command for build or use our buildEnd hook. |
Beta Was this translation helpful? Give feedback.
ah because that removed the default options