Skip to content

Does it possible to update :devtools option using build hook? #987

Answered by thheller
maksimr asked this question in Q&A
Discussion options

You must be logged in to vote

At the :configure stage the :devtools-url will already be applied to the place it is actually used. So updating the place where it came from will do nothing. Basically all this sets is this :closure-defines key/val pair.

'shadow.cljs.devtools.client.env/devtools-url
(or devtools-url "")}

So in your build hook you can (assoc-in build-state [:compiler-options :closure-defines 'shadow.cljs.devtools.client.env/devtools-url] new-url).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maksimr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants