News for hackers. Stuff that matters.
Re:UnCSS: Remove unused styles from CSS by msiebuhr on Thursday March 09, 2017 @04:01AM (#13828073)
AFAIK, this could also be written as a transform in AssetGraph [https://github.com/assetgraph/assetgraph], which does all of the loading, parsing and traversing for you. At least the given description reads like the internals of the population/loader-system in AssetGraph.

As an added benefit, you'll get de-duplication, minification, inlining (with fallbacks) and, with a little work, image-spriting thrown in almost for free.

If you want to play around easily, take a look at https://github.com/assetgraph/assetgraph-builder

There are no comments on this comment yet.