Open grncdr opened 2 months ago
This code that sets up a listener is hardcoded to the Rails root.
https://github.com/railsjazz/rails_live_reload/blob/e089d818de02e8b10d94848ecfe09d4e8aad58a6/lib/rails_live_reload/watcher.rb#L28C1-L39C8
That's fine, but in my project there are some other folders that should not be watched because it causes a lot of CPU usage for the Listen gem. It would be nice if the configuration allowed adding ignore patterns like this:
ignore
config.ignore /^\./ config.ignore /node_modules/
This code that sets up a listener is hardcoded to the Rails root.
https://github.com/railsjazz/rails_live_reload/blob/e089d818de02e8b10d94848ecfe09d4e8aad58a6/lib/rails_live_reload/watcher.rb#L28C1-L39C8
That's fine, but in my project there are some other folders that should not be watched because it causes a lot of CPU usage for the Listen gem. It would be nice if the configuration allowed adding
ignore
patterns like this: