4 ms·
Hotwire Spark: live reloading for Rails applications
- chris12321 2y agoThis rapid feedback seems like it will be especially useful when iterating on CSS designs
- graypegg 2y agoThis appears to be using a simple file watcher based on glob patterns to detect changes [0] so I'd be curious if we can configure that list to include ViewComponent instances as well! That may be harder since it's not just a static asset, and the keys in the config do appear to be hard coded [1] so I think each asset type has some quirks around how it can be hot reloaded. [0] https://github.com/basecamp/hotwire-spark/blob/main/lib/hotwire/spark/engine.rb https://github.com/basecamp/hotwire-spark/blob/main/lib/hotw... [1] https://github.com/basecamp/hotwire-spark/blob/af57eeb22c6429adaeaabaad92db5ca9fa8e885f/lib/hotwire/spark/installer.rb#L29 https://github.com/basecamp/hotwire-spark/blob/af57eeb22c642...