This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-03
Channels
- # beginners (7)
- # calva (25)
- # clerk (2)
- # clj-kondo (5)
- # clojure (42)
- # clojure-brasil (1)
- # clojure-europe (10)
- # clojure-nl (1)
- # clojure-norway (14)
- # clojure-uk (3)
- # conjure (6)
- # datahike (4)
- # datomic (3)
- # etaoin (4)
- # fulcro (6)
- # graalvm (7)
- # hoplon (9)
- # hyperfiddle (6)
- # introduce-yourself (2)
- # london-clojurians (1)
- # off-topic (22)
- # pedestal (5)
- # portal (12)
- # proletarian (1)
- # releases (1)
- # shadow-cljs (9)
- # vim (9)
Is it possible to defer loading shadow-cljs’ default HTTP server until compilation of a target is complete? If not, then I assume an :after-load-async
hook ensuring a custom HTTP server is started is a viable alternative?
My use case involves some tooling that blindly checks for a live HTTP server in order to start a web app. With near certainty, the web app will launch in the middle of compilation and receive stale JS output. So at the moment I have to manually refresh the page.
the http servers are not related to builds in any way, they are started when shadow-cljs is started. so no, this is not possible. not in a hook or elsewhere.
Unfortunately not. Because I am dealing with something that’s like electron, but there doesn’t seem to be a way to force it to wait until shadow-cljs compilation finishes. It only checks for the presence of an HTTP server for the web frontend
well you can always use your own webserver. there is nothing special about :dev-http
and its not needed for REPL/hot-reload
I am wondering about goog.DEBUG
. The User Guide says that is set to false
in release builds, which I can confirm. But I also notice that it set to true
in development. But I am not sure why - is it the default setting from goog
or is it set by shadow-cljs
?
Ah, OK. Great, thanks!