Skip to content

Instantly share code, notes, and snippets.

@alexrah
Created August 14, 2014 08:46
Show Gist options
  • Save alexrah/bc5e78fb5d9988474c25 to your computer and use it in GitHub Desktop.
Save alexrah/bc5e78fb5d9988474c25 to your computer and use it in GitHub Desktop.
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'livereload' do
watch(%r{app/views/.+\.(erb|haml|slim)$})
watch(%r{app/helpers/.+\.rb})
watch(%r{.+\.(css|js|html|php|scss)})
watch(%r{public/.+\.(css|js|html)})
watch(%r{config/locales/.+\.yml})
# Rails Assets Pipeline
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment