This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-26
Channels
- # adventofcode (2)
- # babashka (17)
- # babashka-sci-dev (4)
- # beginners (8)
- # chlorine-clover (4)
- # clj-kondo (18)
- # clj-on-windows (1)
- # clojure (11)
- # clojure-india (12)
- # clojure-nl (1)
- # clojure-spec (9)
- # clojure-uk (3)
- # clojurescript (9)
- # conjure (3)
- # events (1)
- # graalvm (6)
- # lsp (6)
- # meander (4)
- # music (2)
- # off-topic (10)
- # other-languages (9)
- # re-frame (2)
- # releases (1)
- # reveal (8)
- # sci (1)
- # tools-deps (6)
Is there a clojure -X
drop-in replacement for npx live-server
?
Context: I'm building a static page, and I'd like to avoid depending on NPM.
https://github.com/teodorlu/subcons.teod.eu/blob/master/bin/live-server
@teodorlu perhaps putting this script on your PATH will help? https://github.com/babashka/babashka/blob/master/examples/http-server.clj
@borkdude does your script reload html based on changes in the file system, or just serve html?
@teodorlu it just serves, but I have a different solution for that. I launch a browser and reload the browser instead.
Thanks for the suggestion - I might go your route. I already have some watch logic in Clojure (based on previous tips from you - thanks for that). And pulling in a bunch of Javascript dependencies just to provide browser hotloading... is perhaps more complex than it needs to be. 🙌