figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
2018-11-14T02:25:55.008100Z

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.

2018-11-14T02:28:26.010Z

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

2018-11-14T02:40:00.010600Z

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

2018-11-14T07:10:00.018100Z

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

2018-11-14T07:10:37.018500Z

(And app2 isn't referenced anywhere in app1)