Search code examples
tailwind-cssgithub-pages

My tailwind project working properly at local server but not on github pages


hello guys I have created a basic project using html tailwind css and JavaScript and build it using vite build but the project working properly in local server but if I deploy it on github pages the tailwind and javascript not working. I don't know what's going wrong please help

my github repo.: https://github.com/Keshav-Rajput-31/portfolio-build.git my github pages url : keshav-rajput-31.github.io/portfolio-build/

I have checked all paths etc but I don't get any solution


Solution

  • Remove the first '/' from the stylesheet href. So, change the stylesheet href from "/assets/index-TEE_z46_.css"

    to

    "assets/index-TEE_z46_.css".