开发者

Removing unused selectors in a CSS stylesheet?

开发者 https://www.devze.com 2023-01-02 15:37 出处:网络
I\'ve been developing a web app for a few weeks now and ended up with about a 1000 lines. I am sure not all the selectors are being used and am trying to clean it up. At the same time, I don\'t want t

I've been developing a web app for a few weeks now and ended up with about a 1000 lines. I am sure not all the selectors are being used and am trying to clean it up. At the same time, I don't want to do it manually for obvious reasons.

Is there a safe and an efficient way to remove unused selectors? For this, am I supposed to navigate the entire website to let it know which selectors are not being used? (I use javascript to add some selectors so these might not show up unti开发者_C百科l a particular usecase is seen)


Not sure why Dust-Me-Selectors is in there as a comment, but not an answer...

0

精彩评论

暂无评论...
验证码 换一张
取 消