Comment

Comment by andrewfromx

I noticed:

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

in the source of the homepage. Just FYI the tailwind people say that's just for dev mode and never deploy that to prod. Instead you gotta run something like:

npx tailwindcss -o ../assets/css/tail.min.css --minify

and then replace the script with:

<link rel="stylesheet" type="text/css" href="/assets/css/tail.min.css">

"a script referred to as the Tailwind Play CDN. This script is only to be used for learning and experimenting, never for a live site."

from https://www.codeinwp.com/blog/tailwind-css-tutorial/

parent andrewfromx 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton