如何从我的网站项目中删除未使用的CSS类? [英] How can I remove unused CSS classes from my website project?
问题描述
我的项目在开发过程中收集了CSS熵(未使用的类)。
现在为了保持CSS文件小,我想删除所有未使用CSS引用。但是这样做手动涉及在整个项目中搜索每个类。这需要时间。
你知道我可以采用什么方式/工具来找出哪些CSS类不再在我的项目中使用,并删除它? / p>
我在ASP.NET上编程。 Visual Studio。
您可能会发现这个Firefox扩充功能很有用:http://www.sitepoint.com/dustmeselectors/
My project has collected CSS entropy (unused classes) during its course of development.
Now in order to keep the CSS file small, I want to remove all unused CSS references. But doing that manually involves searching for each class in the entire project. That takes time.
Do you know of any way/tool which I can adopt to find out which CSS classes are no longer used in my project, and remove it?
I am programming on ASP.NET. Visual Studio.
You might find this Firefox extension useful: http://www.sitepoint.com/dustmeselectors/
这篇关于如何从我的网站项目中删除未使用的CSS类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!