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
I'm using unplugin-tailwindcss-mangle in my project, and I've noticed that SVG attributes like stroke-width are being mangled in the same way as Tailwind classes.
Is there a way to configure the plugin to ignore SVG attributes while still mangling Tailwind classes? I couldn't find an option in the documentation to exclude specific HTML/SVG attributes from being transformed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using unplugin-tailwindcss-mangle in my project, and I've noticed that SVG attributes like
stroke-width
are being mangled in the same way as Tailwind classes.For example, this SVG:
Gets transformed to something like:
Question
Is there a way to configure the plugin to ignore SVG attributes while still mangling Tailwind classes? I couldn't find an option in the documentation to exclude specific HTML/SVG attributes from being transformed.
Beta Was this translation helpful? Give feedback.
All reactions