You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick, short summary:
PurgeCSS wrongly removes all classes containing the colon character (i.e. md:w-6) despite them being in use. Could this be due to the colon character being escaped in the actual stylesheet (i.e. .md\:w-6)?
Expected results:
PurgeCSS removes only the colon classes not used in the scanned content.
Actual results:
PurgeCSS removes all colon classes regardless if they’re being used or not.
Exact steps to reproduce:
Add colon classes in SCSS (they compile correctly when PurgeCSS is deactivated)
Assign colon classes to content (PHP in my case)
Compile with PurgeCSS activated
PurgeCSS removes all colon classes despite some of them having been assigned in the content. Non-colon classes are removed correctly/as expected.
Your configuration (any details about your system that you think might be relevant)
CodeKit 3.16.1
The text was updated successfully, but these errors were encountered:
This sounds like a PurgeCSS issue. But regardless, Tailwind no longer uses PurgeCSS; the JIT Tailwind compiler assembles only the CSS you need. As long as you've installed the latest version of Tailwind, you're using the JIT approach and should not have PurgeCSS enabled.
Sorry, my wording might have been somewhat imprecise there – I am not actually using Tailwind but creating utility classes mimicking the Tailwind syntax.
That being said, I came across this thread offering a solution. Is it possible to point the PurgeCSS version that ships with CodeKit to a custom config file?
Quick, short summary:
PurgeCSS wrongly removes all classes containing the colon character (i.e. md:w-6) despite them being in use. Could this be due to the colon character being escaped in the actual stylesheet (i.e. .md\:w-6)?
Expected results:
PurgeCSS removes only the colon classes not used in the scanned content.
Actual results:
PurgeCSS removes all colon classes regardless if they’re being used or not.
Exact steps to reproduce:
Your configuration (any details about your system that you think might be relevant)
CodeKit 3.16.1
The text was updated successfully, but these errors were encountered: