You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last time I used Clojure things were a bit different (clj didn't even exist!) so perhaps I am doing this wrong.
I wanted to create a production bundle of electric-starter-app, so I copied :dev into another build named :prod, removed devtools and added :release { :compiler-options {:optimizations :advanced } } and ran npx shadow-cljs release prod
The main.js came out at 156kb gzipped. This is quite a bit larger than a normal ClojureScript app so I think I'm probably doing something wrong. Likely there are some dev-mode things being imported that is increasing the size, but I couldn't find anything.
Is this the expected bundle size?
The text was updated successfully, but these errors were encountered:
The last time I used Clojure things were a bit different (
clj
didn't even exist!) so perhaps I am doing this wrong.I wanted to create a production bundle of
electric-starter-app
, so I copied:dev
into another build named:prod
, removed devtools and added:release { :compiler-options {:optimizations :advanced } }
and rannpx shadow-cljs release prod
The main.js came out at 156kb gzipped. This is quite a bit larger than a normal ClojureScript app so I think I'm probably doing something wrong. Likely there are some dev-mode things being imported that is increasing the size, but I couldn't find anything.
Is this the expected bundle size?
The text was updated successfully, but these errors were encountered: