DEV Community

Discussion on: Automatically Removing Unused CSS from Wordpress Pages?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

This might not be super helpful, but untie your thinking from the platform. This is not wordpress, this is a collection of files and folders. It is possible that there is a scanner to find unused rules sure but the unused rules might be tied to JavaScript logic. If it where me I'd write a simple puppeteer script and timebox it to strictly 2 hours. If that's not done, push back and explain that there is a serious problem, here is the report, what do you want to do about it? Then manually do the work. It's less risky that the end result won't mess up if you do this by hand.