Closed mattdesl closed 7 years ago
Some progress this week — you can test like so:
npm install mattdesl/budo#feature/livereload-rework -g
More progress in the same branch.
<style>
tags, etc works more reliably and without any flashing of unstyled content.There are various open questions like: how should the LiveReload client be bundled and served to the user? How many times should budo try to re-connect to the LiveReload server? Should we expose the LiveReload client (send
/ receive
events from budo's WebSocketServer) to the user, or force them to write their own client-side WebSocket
handling if they want that sort of thing?
You can see some experimental LiveReload extensions but I'm still not 100% sure that will make it into budo.
BOOM
done. mostly.
Got this on my terminal when running canvas-sketch: can you give me a hint of how to solve it?
NOTE: The bundled LiveReload client could not be found, so budo will generate this on the fly. This is most likely because you are using a git cloned version of budo instead of installing it from npm. You can run this from your cloned budo folder to create a build: npm run bundle-live-client
I've been thinking about switching out
tiny-lr
for a more custom solution that uses uws in the server and plain oldWebSocket
on the client.This might allow for:
tiny-lr
has been a bit sketchy to depend on...)Downsides: