TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hotwire Spark: live reloading for Rails applications

12 点作者 juliendc5 个月前

2 条评论

graypegg5 个月前
This appears to be using a simple file watcher based on glob patterns to detect changes [0] so I&#x27;d be curious if we can configure that list to include ViewComponent instances as well! That may be harder since it&#x27;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.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;main&#x2F;lib&#x2F;hotwire&#x2F;spark&#x2F;engine.rb">https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;main&#x2F;lib&#x2F;hotw...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;af57eeb22c6429adaeaabaad92db5ca9fa8e885f&#x2F;lib&#x2F;hotwire&#x2F;spark&#x2F;installer.rb#L29">https:&#x2F;&#x2F;github.com&#x2F;basecamp&#x2F;hotwire-spark&#x2F;blob&#x2F;af57eeb22c642...</a>
chris123215 个月前
This rapid feedback seems like it will be especially useful when iterating on CSS designs