From cc6849e143a15beb85382e094e19dca38978e548 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Wed, 18 Dec 2024 10:56:31 -0600 Subject: [PATCH] Add builds folder for CSS monitoring Closes #11 --- README.md | 2 +- lib/hotwire/spark/engine.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ebdcea3..768f74dd 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ config.hotwire.spark.html_paths += %w[ lib ] | Name | Description | |------------------|------------------------------------------------------------------------------------------------------------------------------| | `html_paths` | Paths where file changes trigger a content refresh. By default: `app/controllers`, `app/helpers`, `app/models`, `app/views`. | -| `css_paths` | Paths where file changes trigger a CSS refresh. By default: `app/assets/stylesheets`. | +| `css_paths` | Paths where file changes trigger a CSS refresh. By default: `app/assets/stylesheets`, `app/assets/builds`. | | `stimulus_paths` | Paths where file changes trigger a Stimulus controller refresh. By default: `app/javascript/controllers`. | | `enabled` | Enable or disable live reloading. By default, it's only enabled in `development`. | | `logging` | Show logs in the browser console when reloading happens. It's false by default. | diff --git a/lib/hotwire/spark/engine.rb b/lib/hotwire/spark/engine.rb index e48b272f..e8e2aa4d 100644 --- a/lib/hotwire/spark/engine.rb +++ b/lib/hotwire/spark/engine.rb @@ -8,7 +8,7 @@ class Engine < ::Rails::Engine config.hotwire.spark = ActiveSupport::OrderedOptions.new config.hotwire.spark.merge! \ enabled: Rails.env.development?, - css_paths: %w[ app/assets/stylesheets ], + css_paths: %w[ app/assets/stylesheets app/assets/builds ], html_paths: %w[ app/controllers app/helpers app/models app/views ], stimulus_paths: %w[ app/javascript/controllers ]