Fork me on GitHub
#figwheel
<
2018-11-14
>
Sturm02:11:55

I have a couple of small apps in a project I'm building with figwheel.main. Is there a way to confine builds to only the code that's used in the current app. It seems to be building stuff that's outside of my :main module too.

Sturm02:11:26

For example, I have src/app1/core.cljs + app1.cljs.edn and src/app2/core.cljs + app2.cljs.edn

Sturm02:11:00

Or maybe this is a feature I should be hunting for in cljs.main?

Sturm07:11:00

So I added a deliberate syntax error in app2 to see if I could figure this out. These build with no error: clojure --main figwheel.main --optimizations advanced --build app1 --serve clojure --main figwheel.main --optimizations advanced --build-once app1 clojure --main figwheel.main --optimizations none --build-once app1 But this fails on my syntax error in app2: clojure --main figwheel.main --optimizations none --build app1 --serve

Sturm07:11:37

(And app2 isn't referenced anywhere in app1)