Skip to content
Browse files

livereload powered by Guard

  • Loading branch information...
1 parent a64d156 commit 8b7cd18f13e443f39e2b4efdca4977ef1786b489 @mislav committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 Guardfile
View
11 Guardfile
@@ -0,0 +1,11 @@
+require 'guard/guard'
+
+guard 'livereload', :apply_js_live => false, :grace_period => 0 do
+ ext = %w[js coffee css scss sass png gif html erb]
+
+ watch(%r{.+\.(#{ext.join('|')})$}) do |match|
+ file = match[0]
+ file = File.join(File.dirname(file), 'application.css') if file =~ /\.(s[ca]ss|css)$/
+ file
+ end
+end

0 comments on commit 8b7cd18

Please sign in to comment.
Something went wrong with that request. Please try again.