-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
purifycss-extended, a way to make Tailwind lighter? #157
Description
Hey @adamwathan,
As I said few days ago, I decided to fix some bugs on purifycss/purifycss.
I forked the repo and made some fixes, now it's called purifycss-extended.
Here's the result before and after (from v1.3.2):
Purification level is very outrageous and can be better.
But it means to rewrite the package from scratch or at least a lot of investment because purifycss read each input file and if you have a lot of text, each word will be added to the list of comparison. This list will be compared to CSS rules. It means that if you have Hello World! on your page, it will check for a hello and world class, and ever if you don't have these classes in your HTML/PHP/... files but they are present in your CSS, they'll stay here.
It's a good start and I'll see if I rewrite this code to be more accurate :)
Hope you'll use this package with Tailwind and maybe link it to the documentation!
