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.

16 lines
506 B

  1. # frozen_string_literal: true
  2. if defined?(RailsLiveReload)
  3. RailsLiveReload.configure do |config|
  4. # config.url = "/rails/live/reload"
  5. # Default watched folders & files
  6. config.watch %r{app/views/.+\.(erb|haml|slim)$}
  7. config.watch %r{(app|vendor)/(assets|javascript)/\w+/(.+\.(css|js|html|png|jpg|ts|jsx)).*}, reload: :always
  8. # USEFUL for tailwind changes!!!!
  9. config.watch %r{app/assets/builds/tailwind.css}, reload: :always
  10. config.enabled = Rails.env.development?
  11. end
  12. end