Find unused css

前端 未结 8 2067
醉梦人生
醉梦人生 2020-12-05 11:31

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 projec

8条回答
  •  醉酒成梦
    2020-12-05 12:18

    1. Chrome addon, which generate stylesheet of css rules effectively used in a page, can be tried for the quick results..here is the link

      https://chrome.google.com/webstore/detail/css-remove-and-combine/cdfmaaeapjmacolkojefhfollmphonoh It also gives summary about the rules, which are not been used.

    2. And this one involves grunt and related plugins to find unused code http://addyosmani.com/blog/removing-unused-css/

提交回复
热议问题