When I run npm run build
, my images located in src/assets/... are not visible in the dist directory or production build. This means they do not appear on the site. However, they work fine in developer mode.
Does anyone have any suggestions on how to ensure these images remain available after the application is built?
In addition, when checking my VSCode terminal, I am receiving an error message stating:
"GET /src/assets/store2.webp" Error (404): "Not found"
<div className="onah">
<img src="src/assets/Deal-2.webp"
I have included some screenshots to provide better clarity on the issue. I even had to adjust my vite.config settings for this situation: