Skip to content

auto add prefix not working. #9824

Discussion options

You must be logged in to vote

Prefixes are not auto added. If you use the class container, and configure a prefix of xx- then you have to use xx-container in your templates instead of container.

Tailwind will not change your source files and automagically convert container to xx-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.

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@chechuangfeng
Comment options

@adamwathan
Comment options

Comment options

You must be logged in to vote
1 reply
@chechuangfeng
Comment options

Comment options

You must be logged in to vote
5 replies
@chechuangfeng
Comment options

@chechuangfeng
Comment options

@adamwathan
Comment options

@chechuangfeng
Comment options

@nabeel-shakeel
Comment options

Answer selected by chechuangfeng
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #9822 on November 13, 2022 16:36.