Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

7.4. css 冗餘/廢棄樣式檢查

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