Lost in transition #207
Replies: 4 comments 4 replies
-
|
Hi Vincent—Thanks for posting this! When you say your blocks are no longer compiled in the backend, do you mean the JavaScript isn't compiled? My expectation from this:
...would be that the classes from any JavaScript files below Is that what's not happening, or is it the full JavaScript compilation that isn't working? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, Greg, that's a very poor explanation. The Tailwind CSS classes of my Gutenberg blocks are no longer compiled into the theme's back-end CSS file. I had @source "../../../plugins/ufo-blocks/src/**/*.js" in tailwind-theme.css |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the explanation and the research leads. With 4 version of Tailwind / _TW, It worked when the partial folder was still there and tailwind.css in the root wasn't quite the "main" file. At this moment : #186 |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, it's entirely my fault. I don't know where yet, but it is my fault. I'm currently migrating a site from Tailwind V3 to V4. I can confirm that the "@source "../../plugins/ufo-blocks/src/**/*.js";" directive at the top of tailwind.css works. Thank you again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Greg,
I used to import my Gutenberg blocks as @source "../../../plugins/ufo-blocks/src/**/*.js" into tailwind-theme.css, and now, unless I'm mistaken, the backend no longer benefits from CSS compilation. My blocks are no longer compiled in the backend. You've made changes in the last 3 months, am I wrong? How to fix this ?
Beta Was this translation helpful? Give feedback.
All reactions