Developmint / nuxt-purgecss

Drop superfluous CSS! A neat PurgeCSS wrapper for Nuxt.js
MIT License
478 stars 18 forks source link

feat: use official regex and support tailwind ui #79

Closed studnitz closed 4 years ago

studnitz commented 4 years ago

This PR changes the regex to the one recommended in the Tailwind CSS documentation.

I also accounted for Tailwind UI, which also has dots in their class names, so I added that to the regex.

- /[\w-:/]+(?<!:)/g
+ /[\w-.:/]+(?<!:)/g
manniL commented 4 years ago

Thank you! ☺️