Ad

Tailwind CSS Renders Locally But Not On GitHub Pages

- 1 answer

I've got TailwindCSS working locally but it's not working on GitHub pages. I'm very new to all of this so I'm unsure where to even look.

My repository is https://github.com/syueyan/syueyan.github.io. My website is yueyan.dev. Thanks for your help.

Ad

Answer

There is only one style in your head area in your DOM.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">

But this is not the style you have built locally. This means you have to add the generated style from your local environment into your HTML head area.

I thing that is your style file what you need: https://github.com/syueyan/syueyan.github.io/blob/main/dist/assets/index.eb05b1e4.css

Ad
source: stackoverflow.com
Ad