Closed de-don closed 3 months ago
If I am using my component props inside template to combine arbitrary class, like max-w-[200px] it not generates tailwind class for that :(
max-w-[200px]
<script props> module.exports = { width: props.width || "632px", }; </script> <div class="container mx-auto max-w-[{{ width }}]"></div>
It compiles to:
<div class="container mx-auto max-w-[632px]"></div>
but without related styles
Tailwind needs to see the entire class name in order to generate the CSS:
https://tailwindcss.com/docs/content-configuration#dynamic-class-names
If I am using my component props inside template to combine arbitrary class, like
max-w-[200px]
it not generates tailwind class for that :(It compiles to:
but without related styles