Skip to content

purifycss-extended, a way to make Tailwind lighter? #157

@HapLifeMan

Description

@HapLifeMan

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):

capture d ecran 2017-11-08 a 20 36 59

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions