This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-23
Channels
- # announcements (10)
- # babashka (7)
- # beginners (31)
- # boot (4)
- # calva (8)
- # chlorine-clover (19)
- # cider (12)
- # clj-kondo (27)
- # cljsrn (7)
- # clojure (68)
- # clojure-colombia (2)
- # clojure-europe (47)
- # clojure-italy (16)
- # clojure-nl (4)
- # clojure-spec (13)
- # clojure-uk (39)
- # clojurescript (103)
- # code-reviews (8)
- # community-development (2)
- # conjure (38)
- # core-async (37)
- # cursive (2)
- # datascript (1)
- # datomic (31)
- # figwheel-main (22)
- # fulcro (18)
- # jobs (2)
- # jobs-discuss (6)
- # juxt (3)
- # keechma (1)
- # lambdaisland (6)
- # malli (30)
- # meander (20)
- # off-topic (29)
- # reagent (1)
- # reitit (16)
- # shadow-cljs (4)
- # tools-deps (70)
- # xtdb (19)
I don't understand the https://figwheel.org/config-options#connect-url option.
I have put :connect-url "
in my figwheel-main.edn
but it keeps connecting to localhost:9500
which is not where the figwheel server is running
so now I kinda wish I could set that IP using some environment variable because this IP will be different for every of my colleagues
where can I configure the JS/CLJS function that should be called after reloading sources?
Found it here: https://figwheel.org/docs/hot_reloading.html
I expected this to be part of the figwheel-main.edn
file without having to change my source code.
I guess figwheel doesn't come with any CSS/less magic other than reloading the CSS right?
ok, that's fine. I solved that problem. My only remaining thing is be able to set :connect-url
dynamically, based on some env variable for example
for anyone curious, I'm using this for less:
:less/dev {:extra-deps
{deraen/less4clj {:mvn/version "0.7.4"}}
:main-opts ["-m" "less4clj.main"
"--auto"
"--source-map"
"--inline-javascript"
"--source-paths" "resources/public/css" "--target-path" "target/public/css"]}
The docs for :connect-url
aren't entirely clear to me. It speaks about "server side" and "client side". but :connect-url
is only used from the browser to connect to the websocket server, right? so why all these options for "server side"?
I think I just need :connect-url "ws://[[client-hostname]]:9500/figwheel-connect"
- seems to work for me
@borkdude the server-hostname stuff is helpful if you are listening on a certain eth address and that happens to be address that your client is using
is this new? I haven't been following for a while 🙂 I'm porting the CLJS and less build from boot to deps.edn
I might, but probably not for this project because my team lead is not fond of npm...