ax-vasquez / mcnuggies-blog

NextJS site & Sanity Studio code for mcnuggies.dev
http://www.mcnuggies.dev
1 stars 1 forks source link

[FIX] Configure TailwindCSS so that unused stuff is purged #22

Closed ax-vasquez closed 2 years ago

ax-vasquez commented 3 years ago

Description

Right now, TailwindCSS is a giant 💩 of code in the build and is extremely 💩 on site performance

Tailwind knows their CSS is massive, so they provide a way to purge the unused stuff, which should be most of it in the end. This site isn't very big, after all. No need to over-complicate things (though, I may need to clean up the CSS classes first :cry: )

ax-vasquez commented 2 years ago

Removed TailwindCSS as it won't work quite how we need it to. Instead, we are just using "vanilla" CSS (albeit, within styled components).