This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-14
Channels
- # beginners (116)
- # boot (6)
- # cider (16)
- # cljdoc (5)
- # cljsrn (3)
- # clojure (156)
- # clojure-conj (5)
- # clojure-finland (1)
- # clojure-italy (46)
- # clojure-mexico (36)
- # clojure-russia (2)
- # clojure-sanfrancisco (1)
- # clojure-spec (10)
- # clojure-uk (69)
- # clojurescript (71)
- # core-async (2)
- # cursive (18)
- # datomic (91)
- # duct (2)
- # editors (1)
- # emacs (5)
- # figwheel-main (11)
- # fulcro (31)
- # graphql (8)
- # hispano (1)
- # jobs (1)
- # jobs-discuss (2)
- # lambdaisland (1)
- # london-clojurians (1)
- # nyc (1)
- # off-topic (104)
- # onyx (34)
- # parinfer (3)
- # pedestal (2)
- # precept (17)
- # protorepl (2)
- # re-frame (13)
- # reagent (4)
- # ring-swagger (52)
- # shadow-cljs (92)
- # spacemacs (17)
- # sql (14)
- # tools-deps (6)
- # unrepl (4)
- # vim (39)
Hi all, (hopefully quick) question: when I use boot-reload along with the boot serve task to serve static site, reload works fine (it reloads my compiled cljs files from /public/static/js/dev.out).
but if I change boot serve to serve a ring handler, and the ring handler routes /public/static/js to http://localhost:3000/js, then when boot-reload tries to load from http://localhost:3000/public/static/js, the reload no longer works
is there a way to tell boot-reload to serve from the handler route (/js) instead of the full relative path to the compiled js (/public/static/js)?
ah ha, nevermind, figured it out 😎
(reload :asset-path "/public/static")
that threw me off because :asset-path
in the *.edn.cljs
files has a different meaning