Tailwind 4 with Vite, no JS Framework: Generating classes? #17599
Replies: 9 comments 7 replies
-
The plugin acts as an intermediary between the core |
Beta Was this translation helpful? Give feedback.
-
Okay, I'm not sure, how your answer could help me. A tailwind css class will not be created. I'm aksing myself, how the initial class "px-4" and the other classes was created. So it probably worked. |
Beta Was this translation helpful? Give feedback.
-
As i wrote before, no Tailwind CSS classes will be generated at all. I think, that the Plugin @tailwindcss/vite does not work. This is the repo Thanks! |
Beta Was this translation helpful? Give feedback.
-
Yes, it does render the markup. So now try to change a class as i described before and the class will not generated. It looks like, that this thing worked once. Do you work with Vite? |
Beta Was this translation helpful? Give feedback.
-
In my original post i wrote,, that the Vute/Tailwind plugin does not generate Tailwind CSS classes. If i change "px-4" to "px-8" in the markup, the new class will not be generated. It isn't about creating classes manually. |
Beta Was this translation helpful? Give feedback.
-
That is odd. Did you use my config files? |
Beta Was this translation helpful? Give feedback.
-
Thank you. I am officially surprised. I have no idea where else to look right now. |
Beta Was this translation helpful? Give feedback.
-
More than ten years ago, we had a problem with another build tool that it couldn't handle mapped directories from Windows Servers. If I copy the project to a local drive, everything works. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have the @import "tailwindcss"; in my css which is included in main.tsx. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I have started a new project. Vite and Tailwind CSS are installed as described.
I created a simple footer with three columns having the class "px-4" for some space. Then i changed it to "px-8". I expected, that this class will be available.
I never worked with the Vite plugin before. Should the plugin create the standard Tailwind classes and i create eveything else?
File vite.config.ts:
File package.json
Of course the first line of my css file is the import:
@import 'tailwindcss';
Thanks!
Martin
Beta Was this translation helpful? Give feedback.
All reactions