查找未使用的css [英] Find unused css
问题描述
我正在对内部网络上的某些网页进行一些开发。我想知道是否有一个开源工具或FF插件可以识别项目中未使用的CSS。
I'm doing some development for some pages on our internal network. I want to know if there's an open source tool or FF plugin which can identify unused css within a project.
我已经看过使用这个,但是当我尝试安装附加组件安装程序说与Firefox 3.6不兼容
I've looked at using this, but when I try to install the Add-on Installer says "Not compatible with Firefox 3.6"
https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/
请注意,这是一个内部网,而不是一个www可视网站,因此我不能使用提供此类服务的在线网站。
Please note, this is for an intranet - not a www visible website - so I can't use the online sites which offer such services.
推荐答案
我一直在寻找一段时间,我发现最好的是这样:
I've been looking for a while, and the best thing I found was this:
他们扫描您的网站并向您发送电子邮件css。
They scan your site and email you the result css.
我知道你正在处理一个localsite,但是如果你没有找到替代品,你可以上传你的网站,
I am aware you are working on a localsite, however if you find no alternative, you can upload your site somewhere and use this
或
您可以安装与之前版本的Firefox兼容dust-me选择器,并沿着当前安装的firefox运行它。
You could install a previous version of firefox that is compatible with dust-me selectors and run it along side your current installation of firefox.
这篇关于查找未使用的css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!