purifycss / purifycss

Remove unused CSS. Also works with single-page apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whitelist patterns

kaisermann opened this issue · comments

I think purifycss could benefit from using regexes instead of glob strings on the whitelist parameter.

Something like uncss do:

[
    "/h\\d/",
    "/expanded/",
    "/js/",
    "/wp-/",
    "/is-/",
    "/align(?!\\W)/",
    "/admin-bar/"
]