Found the solution.
Tailwind recently has implemented its own purgeCss solution which needs to be configured using the following config: https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
I've set up tailwindcss in an older project of mine, but when running npm run production I get the following error:
Skipping purge because no template paths provided.
To silence this warning, set `purge: false` in your Tailwind config file.
My settings for tailwindcss are exactly the same as in a more recent project of mine, where this works fine.
Because the purge doesn't work, my css file is 1.58MB big, so I can't ignore the error. But, there is no information on Google about this error, plus the error output doesn't help me much...
Any ideas?
Found the solution.
Tailwind recently has implemented its own purgeCss solution which needs to be configured using the following config: https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
Please or to participate in this conversation.