Skip to content

Tailwind classes not work in mfe remote module #13446

Closed Answered by RobinMalfait
2eron asked this question in Help
Discussion options

You must be logged in to vote

Hey!

Tailwind CSS works at build time, there is no runtime involved. If you load modules from some remote location at runtime then Tailwind will not be able to pick this up.

If you want, you can use the safelist feature (https://tailwindcss.com/docs/content-configuration#safelisting-classes) but that's not ideal.

Can you share a minimal reproduction repo to further investigate?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by 2eron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13444 on April 04, 2024 11:11.