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
585 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. # Rk: prevent any reload for files ending with '.tailwind.css'
  7. config.watch %r{(app|vendor)/(assets|javascript)/.+\.(css|js|html|png|jpg)(?<!tailwind\.css)$}, reload: :always
  8. # USEFUL for tailwind changes!!!!
  9. config.watch %r{app/assets/builds/tailwind.css}, reload: :always
  10. # HOT Constants
  11. config.watch(%r{/\.env}, reload: :always)
  12. end
  13. end