Home > Net >  Tailwind CSS and JS is not working on GitHub page
Tailwind CSS and JS is not working on GitHub page

Time:05-15

Tailwind CSS and JavaScript is not working on my GitHub pages.

Here is my GitHub page link https://slug01.github.io/keep-notes/

https://slug01.github.io/keep-notes/

CodePudding user response:

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>

CodePudding user response:

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