Fork me on GitHub
#clojurescript
<
2024-06-11
>
Anton Shastun12:06:50

Is it possible to set a variable in shadow-cljs config? I want to have some flag like:

mode = release | dev 

p-himik12:06:05

The question is vague. What do you mean by a "variable" here?

Anton Shastun12:06:21

inside the app i want be able to branch:

(if (= mode :dev)
  )

thheller12:06:27

js/goog.DEBUG by default captures that. it is true for watch/compile and false for release builds