I wrote a web application in Reagent, and I develop and run it locally using Figwheel, which is great. Now I want to deploy it, so I ran "lein ring uberwar". It says "Compiling ClojureScript..." (3 times!), which sounds promising. But then when I deploy the war file and visit the page, I get a flash of:
ClojureScript has not been compiled!
please run lein figwheel in order to start the compiler
before the application kicks in.
Should Figwheel even be involved in production deploys? Can I build an uberwar that doesn't have this FOUC-like flash?
I found How do I deploy a single-page app. written in ClojureScript / Figwheel to a static server? but it seems to start from scratch (not Reagent-specific), and a lot of the links are dead.
I'm not familiar with how figwheel/uberwar work so I don't even know what to try.
This happens even with a plain 0.8.1 Reagent project, AFAICT.
I see a Figwheel warning text very briefly, when I first visit the page. I'd like to see nothing at all, until the page loads. (Or maybe let me put in a custom spinner or something, but one thing at a time.) I'd also like to not have to package and send unnecessary Figwheel code to every client, because it's not big but it should never be needed there.