Permalink
Browse files

adding episode 180

  • Loading branch information...
1 parent b432669 commit f49f46e05a9bf06421978fad92820df280445b26 @ryanb committed Sep 21, 2009
Showing with 19 additions and 0 deletions.
  1. +6 −0 episode-180/README
  2. +13 −0 episode-180/deadweight.rake
View
@@ -0,0 +1,6 @@
+Railscasts Episode #180: Finding Unused CSS
+
+http://railscasts.com/episodes/180
+
+Commands
+ sudo gem install aanand-deadweight
@@ -0,0 +1,13 @@
+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

0 comments on commit f49f46e

Please sign in to comment.