demarches/config/initializers/rails_live_reload.rb

16 lines
524 B
Ruby
Raw Normal View History

2024-09-01 14:51:03 +00:00
# frozen_string_literal: true
RailsLiveReload.configure do |config|
# config.url = "/rails/live/reload"
# Default watched folders & files
# config.watch %r{app/views/.+\.(erb|haml|slim)$}
# config.watch %r{(app|vendor)/(assets|javascript)/\w+/(.+\.(css|js|html|png|jpg|ts|jsx)).*}, reload: :always
# More examples:
# config.watch %r{app/helpers/.+\.rb}, reload: :always
# config.watch %r{config/locales/.+\.yml}, reload: :always
# config.enabled = Rails.env.development?
end if defined?(RailsLiveReload)