-
Notifications
You must be signed in to change notification settings - Fork 3
/
shadow-cljs.edn
25 lines (21 loc) · 1.6 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
23
24
{:lein true ; let lein/project.clj manage source-paths and deps
:builds {:devcards {:target :browser
:output-dir "resources/public/devcards" ; where does compilation output go
:asset-path "/devcards" ; sets path to comiled assets in loader script
:modules {:main {:entries [stu.devcards]}}
; :devcards true is supposed to add preloads and calls start-devcard-ui! but not so for now
:dev {:compiler-options {:devcards true}}
:devtools {:http-root "resources/public"
:http-port 8280
:autoload true ; defaults true for :browser target
:preloads [devcards.core]}}
:app {:target :browser
:output-dir "resources/public/app" ; where does compilation output go
:compiler-options {:externs ["resources/d3.externs.js"]}
:asset-path "/app" ; sets path to comiled assets in loader script
; simple code-splitting, puts all d3 code in a shared module
:modules {:main {:entries [stu.app]
:depends-on #{:shared}}
:shared {:entries [stu.d3]}}
:devtools {:http-root "resources/public"
:http-port 8290}}}}