|
|
@ -1,9 +1,7 @@ |
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
if defined?(RailsLiveReload) |
|
|
|
if defined?(RailsLiveReload) && Rails.env.development? |
|
|
|
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 |
|
|
@ -11,6 +9,7 @@ if defined?(RailsLiveReload) |
|
|
|
# USEFUL for tailwind changes!!!! |
|
|
|
config.watch %r{app/assets/builds/tailwind.css}, reload: :always |
|
|
|
|
|
|
|
config.enabled = Rails.env.development? |
|
|
|
# HOT Constants |
|
|
|
config.watch(%r{/\.env}, reload: :always) |
|
|
|
end |
|
|
|
end |