@jakelazaroff I found your TIL regarding esbuild as live reload, so cool! Any tricks to get it working? I can see it responding to the watch in my terminal, but neither Chrome or Firefox reload the page.

https://til.jakelazaroff.com/esbuild/run-a-development-server-with-live-reload/

[esbuild] Run a development server with live reload | Today I Learned

A collection of useful things I've learned.

@asuh thanks! it was working as of the time i published it, not sure if there have been any breaking esbuild changes since then. is your browser successfully making the SSE connection?

could also try checking the esbuild live reload documentation

@jakelazaroff thanks, yeah I did check the documentation and I’m successfully seeing the index file on localhost. Seems unlikely but could http without the “s” be an issue? Also, do you remember if a /build/ folder is supposed by literally be created bc of the esbuild command? I don’t see that happen, either

@asuh did you end up getting this working? i just set up a new repo and i had no issues with it.

i don't see the build folder actually being created on the filesystem, i think in serve mode it just keeps everything in memory.

@jakelazaroff Thank you for following up! I did not get this working, but as soon as I saw your reply, I reviewed the files, noticed what you said about `/build/` being in memory, removed the folder from the script tag in my index file, and then I saw it working. I can be dense sometimes, where it wasn't clear I wouldn't actually see a generated build folder after running the command.

With that said, I put it up on Github :)

https://github.com/asuh/bundler

GitHub - asuh/bundler: Minimal bundler using esbuild, perfect for websites built with static HTML, CSS, and JS

Minimal bundler using esbuild, perfect for websites built with static HTML, CSS, and JS - asuh/bundler

GitHub