forked from pitch-io/uix-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
shadow-cljs.edn
22 lines (22 loc) · 1.3 KB
/
shadow-cljs.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{:deps true
:dev-http {8080 "public"}
:builds {:app
{:target :browser
:modules {:main {:entries [app.core]
:init-fn app.core/init}}
:devtools {:preloads [preload devtools.preload]}
:js-options {:js-provider :external
:external-index "target/gen/libs.js"
:external-index-format :esm}
:release {:build-hooks [;; Esbuild must run after shadow-cljs flush so no way to optimize.
;; You can replace yarn with npm.
(dev.build/run-cmd-flush {:cmd ["yarn" "build:libs"]
:once true})]
;; If you want to enable module-hash-names you need to fix the references in the index.html to refer to
;; the new names.
;; ESBuild can also enable this.
;; Shadow-cljs would write information about created output files in public/js/manifest.edn and ESBuild in
;; public/js/manifest.json (if you enable that in build.mjs)
;; :module-hash-names true
}
:dev {:build-hooks [(dev.build/run-cmd-configure {:cmd ["yarn" "start:libs"]})]}}}}