I know that this question has been asked multiple times already, but I still couldn't find a decent solution for my situation.
I have a huge CSS file, and about 50% of it is not being used at all in my current website. It also contains many valuable comments which I want to keep.
Due to the size of the CSS file, tools that can only identify the unused CSS definitions are not very helpful - I need a tool that can either change my unused definitions so I can apply regex to delete them afterwards, or delete the unused definitions for me, automatically.
CSS Usage does a great job changing all the unused definitions, and I can easily remove all of them with a regex - the problem is that CSS Usage also removes all the comments from my file, automatically.
How can I remove all the unused definitions in my CSS file but keep all the comments?