n4j1Br4ch1D / postcss-obfuscator

PostCSS plugin that helps you protect your CSS code by obfuscating class names and ids. with advanced customizable configuration.
MIT License
138 stars 5 forks source link

Using tailwindcss arbitrary values #3

Closed n4j1Br4ch1D closed 1 year ago

n4j1Br4ch1D commented 1 year ago

this feature doesn't exist yet since it was fairly new to tailwinds. but I have identified the resource of the issue: arbitrary values don't work cause the regex used considers them as a CSS [attribute*=value]Selector. an exception will be made for tailwindcss if the selector starts with -[ it wont be removed.

if fixed it will be released soon at version 1.5.4

n4j1Br4ch1D commented 1 year ago

replacement in HTML doesn't seem to work. for example pt-[15px] stays the same in HTML. will be released in version 1.5.x