website icon indicating copy to clipboard operation
website copied to clipboard

Live-reloading in dev

Open graphiteisaac opened this issue 7 months ago • 3 comments

Ideally, we'd like to be able to rapidly hack on the site locally by running one command and having the browser hot-reload the updated code, similar to the basic experience of Vite.

Making something in pure Gleam to do this would be the absolute ideal, and the Gleam website is a great place to build it and test it out. We should have all the pieces to put that together. I'll do some exploration (bug Hayleigh) about it and see what we can do!

graphiteisaac avatar May 12 '25 09:05 graphiteisaac

Sounds great! Being able to run gleam dev and have that entrypoint start a webserver with live-reload for the site would be great.

lpil avatar May 12 '25 09:05 lpil

Could all the learnings go into one convenient app scaffold maybe that allows live reloading for any new bare bone project?

inoas avatar May 12 '25 12:05 inoas

This is live reloading of the Gleam website, not of Gleam code generally. That would be more complex and not something we aim to tackle here.

lpil avatar May 12 '25 13:05 lpil