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
In a Ruby on Rails application, I'm using Slim templates which look like this:
p.bg-red-500.text-sm
'This is a paragraph
small.italic.text-gray-500
'(Look mom, no closing tag!)
With Tailwind CSS v3.0.24 this works fine, which means that Tailwind recognizes the classes correctly.
But after upgrading to v3.1.0 this is broken - maybe because of the dots instead of spaces (see #8553 for a similar issue). Classes defined this way are purged from the resulting stylesheet.
What version of Tailwind CSS are you using?
v3.1.0
What build tool (or framework if it abstracts the build tool) are you using?
[email protected], [email protected]
What version of Node.js are you using?
v18.3.0
What browser are you using?
Not relevant here
What operating system are you using?
Not relevant here
In a Ruby on Rails application, I'm using Slim templates which look like this:
With Tailwind CSS
v3.0.24
this works fine, which means that Tailwind recognizes the classes correctly.But after upgrading to
v3.1.0
this is broken - maybe because of the dots instead of spaces (see #8553 for a similar issue). Classes defined this way are purged from the resulting stylesheet.I've built this workaround by transforming to HTML:
This works, but seems like a hack. Is there a chance for an official fix?
The text was updated successfully, but these errors were encountered: