Can Leiningen be configured in such way that it bundles all compiled JS to a single file? Currently it outputs over a hundred files, which would be very slow in production.
I'm using Chestnut boilerplate, by the way. The documentation says:
Q: I just want to compile ClojureScript to fully optimized JavaScript, so I can use it in a static HTML site.
A: Invoke cljsbuild with the uberjar profile active, like this:
lein with-profile -dev,+uberjar cljsbuild once, then look forresources/public/js/app.js.
I've tried it, but the resulting app.js is still just loads the dependencies from other files, it doesn't contain the whole app.
project.cljlook like? You are probably using:optimization :none. github.com/clojure/clojurescript/wiki/… - muhuk[:cljsbuilds :builds ...]to your map withoptimization :advanced- ClojureMostly