warrenalphonso / warrenalphonso.com

Personal website built with Next.js
https://wba.netlify.app/
0 stars 0 forks source link

Configure Tailwind purging? #23

Open warrenalphonso opened 3 years ago

warrenalphonso commented 3 years ago

From Netlify deploy logs:

4:08:26 PM: warn - Tailwind is not purging unused styles because no template paths have been provided.
4:08:26 PM: warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set `purge: false` in your Tailwind config file to silence this warning.
4:08:26 PM: warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
warrenalphonso commented 3 years ago

Weird issue: I defined classes link-zero, ..., link-five which weren't initially assigned but were assigned by jQuery on load. In local build, they worked, but once Netlify exported, jQuery continued to assign the class names but the class definitions just didn't exist? I think Tailwind was purging them. I even set purging: false in tailwind.config.js, but that didn't fix it, so I need to get to the bottom of this.