figwheel-main

figwheel-main http://figwheel.org
2020-09-21T15:08:30.002300Z

Hi! I have a project that is using re-frame-10x, which requires a :preloads config option to work properly. I set this in dev.cljs.edn. I don't want to run this :preload when doing a production build. What is the best way of doing this with figwheel main? Should I use a completely different prod.cljs.edn file where I leave out the :preloads?

deadghost 2020-10-01T15:49:07.026500Z

@curlyfry https://github.com/bhauman/figwheel-main/blob/4406e9eeb312b32058398f0614a479b763dba303/src/figwheel/main.cljc#L778-L783 Look at -co and -b, they have merge behavior when provided more than one thing.

deadghost 2020-09-21T20:32:52.002400Z

https://github.com/bhauman/figwheel-main-template/blob/master/src/leiningen/new/figwheel_main/figwheel-main.edn Try making a figwheel-main.edn maybe? I'm new to this myself.

deadghost 2020-09-21T20:36:59.003900Z

:launch-js ["chromium-browser" "--repl" "<http://localhost:1234/$FOO>"] How do I get :launch-js to read $FOO from my env instead of just opening the exact string "<http://localhost:1234/$FOO>"in the browser?

deadghost 2020-09-21T22:37:52.004Z

https://figwheel.org/#configuring-figwheel-main

deadghost 2020-09-21T22:42:34.004800Z

I got it going for "http://localhost:1234/test.html" so I'm good.