Guardfile 556 B

12345678910111213
  1. # A sample Guardfile
  2. # More info at https://github.com/guard/guard#readme
  3. guard :livereload, port: '35738' do
  4. watch(%r{app/views/.+\.(erb|haml|slim)$})
  5. watch(%r{app/helpers/.+\.rb})
  6. watch(%r{public/.+\.(css|js|html)})
  7. watch(%r{config/locales/.+\.yml})
  8. # Rails Assets Pipeline
  9. watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|coffee|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
  10. watch(%r{(app|vendor)(/assets/\w+/(.+)\.(scss))}) { |m| "/assets/#{m[3]}.css" }
  11. watch(%r{(app|vendor)(/assets/\w+/(.+)\.(svg))}) { |m| "/assets/#{m[3]}.svg" }
  12. end