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.

17 lines
586 B

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