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
17 lines
585 B
# frozen_string_literal: true
|
|
|
|
if defined?(RailsLiveReload) && Rails.env.development?
|
|
RailsLiveReload.configure do |config|
|
|
# Default watched folders & files
|
|
config.watch %r{app/views/.+\.(erb|haml|slim)$}
|
|
|
|
# Rk: prevent any reload for files ending with '.tailwind.css'
|
|
config.watch %r{(app|vendor)/(assets|javascript)/.+\.(css|js|html|png|jpg)(?<!tailwind\.css)$}, reload: :always
|
|
|
|
# USEFUL for tailwind changes!!!!
|
|
config.watch %r{app/assets/builds/tailwind.css}, reload: :always
|
|
|
|
# HOT Constants
|
|
config.watch(%r{/\.env}, reload: :always)
|
|
end
|
|
end
|