mangle-css-class-webpack-plugin
mangle-css-class-webpack-plugin copied to clipboard
Mangling for Tailwindcss in Vue3
This is the small change I use for mangling Tailwindcss in Vue3. Vue3 needs to parse .vue files. I also allow to begin the previous character can be ':' so sm:xxxxxx can be matched without rewriting the responsive prefix.
@eltorio Sorry for the late reply!!
I thought the plugin doesn't work well with Vue. Is this different from the issue?
I also allow to begin the previous character can be ':' so sm:xxxxxx can be matched without rewriting the responsive prefix.
Did you try the option ignoreprefixregexp
?
https://github.com/sndyuk/mangle-css-class-webpack-plugin#ignoreprefixregexp