Configure Tailwind purging?
Opened this issue · 1 comments
warrenalphonso commented
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
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.