r/Clojurescript • u/self • Dec 24 '18
Looking for code-splitting examples with leiningen.
I'm looking to replace a 30+ page site with an SPA. Is there a guide out there that explains how to do code-splitting with leiningen instead of shadow-cljs? I'm not opposed to the latter; I just want to reduce the cognitive overload of learning a lot of different tools on a deadline.
6
Upvotes
View all comments
Show parent comment
1
u/roman01la Dec 26 '18
Yes, you have to describes modules (splits) in compiler config and use cljs.loader to mark when module is done loading. Exactly as written in the guide