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.

19 lines
684 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. # HOT Constants
  5. config.watch(%r{/\.env$}, reload: :always)
  6. config.watch(%r{/\.env\.sample$})
  7. config.watch(%r{/config/initializers/hot_changes.rb$})
  8. # USEFUL for tailwind changes!!!!
  9. config.watch %r{app/assets/builds/tailwind.css}, reload: :always
  10. # Rk: prevent any reload from files ending with '.tailwind.css'
  11. config.watch %r{(app|vendor)/(assets|javascript)/.+\.(css|js|html|png|jpg)(?<!tailwind\.css)$}, reload: :always
  12. # Default watched folders & files
  13. config.watch %r{app/views/.+\.(erb|haml|slim)$}
  14. end
  15. end