juanpb96 / FEM_space-tourism-website

A space website created with React + TypeScript
https://juanbonilla.me/FEM_space-tourism-website/
0 stars 0 forks source link

fix(47): Set build assets directory path to the root #51

Closed juanpb96 closed 4 months ago

juanpb96 commented 4 months ago

Description

By default, when Vite builds the project, it will generate the CSS file inside the ./assets path, causing prod images to look for the background images in ./assets/assets. It was necessary to set build.assetsDir to an empty string to generate the CSS file in the root folder so the images can be found in ./assets both in local env and prod.

Project: Issue link

Changes

Evidence

Project build