Tailwind CSS and JS is not working on GitHub page

Viewed 299
2 Answers

You probably forget to add CDN link in your head tag inside html add this tag inside your head tag and than you are good to goo...

<script src="https://cdn.tailwindcss.com"></script>

In addition of the DCN link, you have in your index.html a <link rel="stylesheet" href="/dest/output.css">

As in this thread, use a relative path to refer to your file, e.g. <link rel="stylesheet" href="dest/output.css">.

Or ../dest/... for your sub-pages

Related