auto add prefix not working. #9824
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
If you have configured the prefix Have you updated your HTML to use |
Beta Was this translation helpful? Give feedback.
-
command: npx tailwindcss build css/application.css -o assets/application.css.liquid |
Beta Was this translation helpful? Give feedback.
-
Prefixes are not auto added. If you use the class Tailwind will not change your source files and automagically convert That also explains why your generated css file is fairly empty, because if you configure a prefix tailwind is now looking for |
Beta Was this translation helpful? Give feedback.
-
I used this link to generate the HTML changes required after adding prefix. |
Beta Was this translation helpful? Give feedback.
-
Hey I found out that the prefix is not auto added and we have to add it manually. Is there a way to auto add the prfix somehow? |
Beta Was this translation helpful? Give feedback.
Prefixes are not auto added. If you use the class
container
, and configure a prefix ofxx-
then you have to usexx-container
in your templates instead ofcontainer
.Tailwind will not change your source files and automagically convert
container
toxx-container
.That also explains why your generated css file is fairly empty, because if you configure a prefix tailwind is now looking for
xx-container
but if you haven't used that one yet, it won't be generated at all.