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.

12 lines
491 B

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. return unless defined?(RailsLiveReload) && Rails.env.development?
  2. # RailsLiveReload
  3. RailsLiveReload.configure do |config|
  4. # Tailwind CSS
  5. # First rule prevents reloading from asset files ending with '.tailwind.css'
  6. config.watch %r{(app|vendor)/(assets|javascript)/.+\.(css|js|html|png|jpg)(?<!tailwind\.css)$}, reload: :always
  7. config.watch %r{app/assets/builds/tailwind.css}, reload: :always
  8. # Default watched folders & files
  9. config.watch %r{app/views/.+\.(erb|haml|slim)$}
  10. end