jfmartinz
jfmartinz
KPCKevin Powell - Community
Created by jfmartinz on 6/7/2024 in #front-end
Website Not Functioning Properly After Building for Production
I've developed a Recipe website using HTML, CSS, and JavaScript with Vite. During development, everything was working fine. However, after building the project for production, the application has stopped functioning correctly. Specifically, the issue arises when navigating to different pages. For example, on the blog page, the CSS doesn't seem to apply, and the same problem occurs on the displayRecipe.html page where both CSS and JavaScript are not functioning as expected. Specific Issues: CSS not applying on certain pages JavaScript not functioning on certain pages Project Structure: https://i.sstatic.net/mdzgtzmD.png Project Link: https://github.com/jfmartinz/FindRecipe After building the project for production, CSS styles are not applying correctly on certain pages, and JavaScript functionality is not working as expected. You can watch this video in Loom for better understanding: https://www.loom.com/share/bd472bc40b834faba4e9c956eb483bb8 Additional Information: I Suspect that the issue may be related to the website's structure or the absence of a vite.config.js file. P.S. I just want to know if the problem is becacuse of the structure or not, or something else, please I need some idea.
9 replies
KPCKevin Powell - Community
Created by jfmartinz on 5/26/2024 in #front-end
Vite Production Build: CSS/JS Not Loading - Need Assistance
No description
4 replies