Skip to content

Instantly share code, notes, and snippets.

@liyaodong
Created March 9, 2015 01:19
Show Gist options
  • Save liyaodong/2a90e305caa785b9fd36 to your computer and use it in GitHub Desktop.
Save liyaodong/2a90e305caa785b9fd36 to your computer and use it in GitHub Desktop.
Rails_guard
guard 'livereload' do
watch(%r{app/views/.+\.(erb|haml|slim)$})
watch(%r{app/helpers/.+\.rb})
watch(%r{public/.+\.(css|js|html)})
watch(%r{config/locales/.+\.yml})
# Rails Assets Pipeline
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|scss|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