tailwindcss-jit-cdn icon indicating copy to clipboard operation
tailwindcss-jit-cdn copied to clipboard

It is really works in the client side..?

Open JTorresConsulta opened this issue 2 years ago • 1 comments

Hi! Thanks for this amazing script.

I am reading in your site the next:

https://beyondco.de/blog/tailwind-jit-compiler-via-cdn

"Of course all of the processing happens on the client side. No HTML is sent to a server to generate the CSS."

All is correct when the script is loaded from unpkg

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

If I try to download the script to my localhost and work offline like:

<script src="js/tailwindcss-jit-cdn,js"></script>

next error is returned:

"Uncaught ReferenceError: tailwind is not defined at ..."

Why it is happening? You say that its works in the client side. (I need it because in my family holydays sometimes I cant connect to internet)

Thanks!

JTorresConsulta avatar Jun 27 '23 14:06 JTorresConsulta

Hi, Are you aware you have a typo? (it has to be .js instead of ,js) So you need:

phoenixbart avatar Jun 30 '23 09:06 phoenixbart