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
639 B

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. return unless defined?(RailsLiveReload) && Rails.env.development?
  2. RailsLiveReload.configure do |config|
  3. # HOT Constants
  4. config.watch(%r{/\.env$}, reload: :always)
  5. config.watch(%r{/\.env\.sample$})
  6. # config.watch(%r{/config/initializers/hot_changes.rb$})
  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