Ruby hotwire-livereload 有人用吗,页面自动刷新的工具

hfpp2012 · January 31, 2022 · 383 hits

https://github.com/kirillplatonov/hotwire-livereload

看了下源码,原理就是去监听文件改变,然后利用 actioncable 广播到浏览器,让浏览器自动 Turbo.visit,相当于让页面修改生效

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.