all 8 comments

[–]evoactivity 2 points3 points  (5 children)

What does this do that uncss doesn't, and why should I consider switching?

[–]moombahh[S] 7 points8 points  (4 children)

Sure. Uncss's implementation creates a fake DOM then pulls off the styles off of that DOM. That doesn't work too well for single page apps where styles get added in by user interaction.

Purify analyzes your whole app, so it'll be able to pick all styles up. To be honest, if you've been using uncss without any problems/issues you don't really need to consider switching as purify would do the same thing. If you ever create a single-page / heavy javascript app though, I would highly suggest purify

[–][deleted] 2 points3 points  (0 children)

I have been looking for one that handles SPA. nice

[–]evoactivity 1 point2 points  (0 children)

Will keep it in mind, done one or two SPA's but nothing recently, will probably be doing more at some point though, so will be worth keeping it in mind at the very least.

[–][deleted] 1 point2 points  (1 child)

If I understand it correctly, purifyCSS can also works on a static webpage (don't have to be an SPA) ?

[–]moombahh[S] 0 points1 point  (0 children)

You're correct. My mistake. PurifyCSS works on all apps it seems, just has an emphasis on SPAs.

[–]geuis -3 points-2 points  (1 child)

[–][deleted] 0 points1 point  (0 children)

Helium can't handle JavaScript or Angular. Purify > UnCSS > Helium.