To generate the dist folder using the thumbnails in the src/assets/thumbnails/name/ directory with Vite, follow these steps:
import yourImage from '@/assets/thumbnails/name/yourImage.jpg';
<template>
<img :src="yourImage" alt="Your Image"/>
</template>
npm run build
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-07 09:38:54 +0000
Seen: 9 times
Last updated: Jun 07 '23