You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check generated css > utilities in playground link.
Tailwind play link is simplification for a weird issue I ran into when bundling a component library, where I generate styles by looking at the JS files in the project that consumed the library.
When minified, spaces from arrays are removed. e.g.:
["min-w-[17rem]", "max-w-[17rem]"]
turns into
["min-w-[17rem]","max-w-[17rem]"]
Example 1 works as expected, while example 2 does not generate both arbitrary value styles, only the first.
Is this intended behaviour? And is there any way for me to work around it?
Thank you!
The text was updated successfully, but these errors were encountered:
Oskar-Nilsen-Roos
changed the title
Comma separated arbitrary value styles in JS does not generate as expected
Array with comma separated arbitrary value classes in JS does not generate as expected
Nov 7, 2023
What version of Tailwind CSS are you using?
v3.3.5
What build tool (or framework if it abstracts the build tool) are you using?
--
What version of Node.js are you using?
--
What browser are you using?
N/A
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/X5qTU0S68S
Describe your issue
Check generated css > utilities in playground link.
Tailwind play link is simplification for a weird issue I ran into when bundling a component library, where I generate styles by looking at the JS files in the project that consumed the library.
When minified, spaces from arrays are removed. e.g.:
turns into
Example 1 works as expected, while example 2 does not generate both arbitrary value styles, only the first.
Is this intended behaviour? And is there any way for me to work around it?
Thank you!
The text was updated successfully, but these errors were encountered: