Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网站,目前有很多未使用的 CSS 文件、javascript 文件等。我想对其进行重构,但我需要确定实际使用的是什么。我想要一种简单的方法来提取尽可能多的必要文件并留下杂物。那里有网络爬虫,但它们要么花钱,要么不符合我的要求。任何有用的建议将不胜感激。
Does this not do what you want?
http://unused-css.com/
If you are unwilling to pay I think you are going to run into some trouble here I think.
Here's a firefox addon that claims to do this:
https://addons.mozilla.org/en-US/firefox/addon/css-usage/