News for hackers. Stuff that matters.
Re:Show HN: A Chrome extension that extracts used CSS and co... by Mtinie on Thursday August 09, 2018 @11:14AM (#17724852)
@tofof: Do you have a workflow which uses both of them the tools in series, or do you pick one or the other depending upon what you're doing? PurifyCSS and PurgeCSS, at least from a cursory review, appear to have similar functionality.
Re:Show HN: A Chrome extension that extracts used CSS and co... by tofof on Thursday August 09, 2018 @12:06PM (#17725413)
You're correct that they're very similar; PurgeCSS even describes itself as an improvement to PurifyCSS. (Purge tries to actually parse for matches, whereas Purify just looks for the presence of words -- so if you have a .arrow CSS rule in your framework, and you happen to use the word 'arrow' in body text somewhere, Purify will needlessly include that style in its output).

But yes, I actually use both tools in series. I get a small reduction from Purifying the output of Purge (I haven't actually bothered to diff it to see where), and Purify stitches the files together and minifies in addition to pruning.