-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshadow-cljs.edn
38 lines (38 loc) · 1.31 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{:deps true
:http {:host "fxp1.local"}
:dev-http
{2000 {:root "public"
:host "fxp1.local"}
2001 {:root "public"
:host "0.0.0.0"}}
:builds
{:editor
{:target :esm
:output-dir "public/build"
:asset-path "/build" ; source map prefix inside public folder
#_#_:output-to "public/build/editor.js"
:modules {:editor {:init-fn small.codemirror/init}}
#_#_:js-options {:js-provider :import}}
;; :editor-static
;; {:target :browser
;; :runtime :custom
;; :output-dir "public/editor-static"
;; :asset-path "/editor-static" ; source map prefix inside public folder
;; #_#_:output-to "public/build/editor.js"
;; :modules {:editor {:init-fn small.codemirror/init}}
;; #_#_:js-options {:js-provider :import}}
:web
{:target :esm
:output-dir "public/build-web"
:asset-path "/build-web" ; source map prefix inside public folder
:modules {:web {:exports {node small.web/node
default small.web/node}}}
:runtime :custom ; default/only :browser, repl fails?
#_#_:js-options {:js-provider :import}}
:node
{:target :esm
:output-dir "build/"
:modules {:small {:exports {init small.node/init}}}
:js-options {:entry-keys ["module" "browser" "main"]
:js-provider :import}
:compiler-options {:externs ["datascript/externs.js"]}}}}