https://code.google.com/archive/p/css-redundancy-checker/
wget https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/css-redundancy-checker/source-archive.zip unzip source-archive.zip gem install hpricot ruby css-redundancy-checker.rb [cssfile] [directory of html files OR .txt file listing urls to use]
# vim url.txt http://www.netkiller.cn/zh-cn/ http://www.netkiller.cn/index.html http://www.netkiller.cn/zh-tw/index.html ruby css-redundancy-checker.rb your.css url.txt
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。