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.

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