You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
513 B

5 months ago
5 months ago
  1. # frozen_string_literal: true
  2. if defined?(RailsLiveReload) && Rails.env.development?
  3. RailsLiveReload.configure do |config|
  4. # Default watched folders & files
  5. config.watch %r{app/views/.+\.(erb|haml|slim)$}
  6. config.watch %r{(app|vendor)/(assets|javascript)/\w+/(.+\.(css|js|html|png|jpg|ts|jsx)).*}, reload: :always
  7. # USEFUL for tailwind changes!!!!
  8. config.watch %r{app/assets/builds/tailwind.css}, reload: :always
  9. # HOT Constants
  10. config.watch(%r{/\.env}, reload: :always)
  11. end
  12. end