Fork me on GitHub
#figwheel-main
<
2020-10-30
>
deadghost16:10:59

How do I get figwheel to build with env vars? With leiningen, it'd be done this way: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#dynamic-eval. figwheel uses [build-name].cljs.edn so I don't think I can do :closure-defines {mything.env.atoggle #=(eval (System/getenv "ATOGGLE"))} since it's edn.

dominicm23:10:09

You'll need to use the Figwheel scripting api for this

dominicm23:10:43

Should a build id be named "dev" and "prod" or just "app"? The latter makes more sense to me, as it simplifies things, like not needing to change the html in dev and prod.