· 1 min read

Screencast: Unbenutze CSS finden

Download: Download (18.9 MB, 8:04) Alternativer Download für iPod & Apple TV (10.8 MB, 8:04)

Weitere Resourcen:

Quellcode:

[bash] sudo gem install aanand-deadweight [/bash]

[ruby] # lib/tasks/deadweight.rake begin require ‘deadweight’ rescue LoadError end

desc “run Deadweight CSS check (requires script/server)” task :deadweight do dw = Deadweight.new dw.stylesheets = [“/stylesheets/application.css”] dw.pages = [”/”, “/feeds”, “/about”, “/episodes/archive”, “/comments”, “/episodes/1-caching-with-instance-variables”] dw.ignore_selectors = /flash_notice|flash_error|errorExplanation|fieldWithErrors/ puts dw.run end [/ruby]

Back to Blog