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.
11 lines
447 B
11 lines
447 B
return unless defined?(RailsLiveReload)
|
|
|
|
RailsLiveReload.configure do |config|
|
|
# Tailwind CSS
|
|
# First rule prevents reloading from asset files ending with '.tailwind.css'
|
|
config.watch %r{(app|vendor)/(assets|javascript)/.+\.(css|js|html|png|jpg)(?<!tailwind\.css)$}, reload: :always
|
|
config.watch %r{app/assets/builds/tailwind.css}, reload: :always
|
|
|
|
# Default watched folders & files
|
|
config.watch %r{app/views/.+\.(erb|haml|slim)$}
|
|
end
|