A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.
Hi, I'm really impressed with css-purge so far. Curious to know if there's an option to preserve the ordering of selectors to match the order they were written initially. Take the code below for example:
As you can tell this will not result in the correct thing showing up, the h1 will be color: purple instead of the intended color: black.
(note: this example is incredibly scaled down from the actual problem existing in my codebase where we have +300kb of duplicated styles that we're trying to auto-deduplicate until we can solve the actual problem)
Hi, I'm really impressed with css-purge so far. Curious to know if there's an option to preserve the ordering of selectors to match the order they were written initially. Take the code below for example:
I would expect it to output the following
but it actually output this:
As you can tell this will not result in the correct thing showing up, the h1 will be
color: purple
instead of the intendedcolor: black
.(note: this example is incredibly scaled down from the actual problem existing in my codebase where we have +300kb of duplicated styles that we're trying to auto-deduplicate until we can solve the actual problem)