-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadow-cljs.edn
54 lines (47 loc) · 2.01 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{:deps
{:aliases [:client]}
:nrepl
{:port 8230
:middleware [refactor-nrepl.middleware/wrap-refactor]}
:http
{:host "0.0.0.0"
:port 9898}
:dev-http
{3000
{:host "0.0.0.0"
:root "build/dev"
:handler factor.client.example/repl-http-handler}}
;; :ssl
;; {:keystore "ssl/origin.jks"
;; :password "shadow-cljs"}
;; :closure-defines
;; {"shadow.cljs.devtools.client.env.ssl" true}
:fs-watch {:hawk false}
:builds
{:example
{:target :browser
:output-dir "build/dev/js"
:asset-path "/js"
:compiler-options {:parallel-build true
:infer-externs :auto}
:module-loader true
:modules {:factor {:entries [factor.client.example]}}
:closure-defines {malli.registry/type "custom"
factor.client.config/PORT #shadow/env "PORT"}
:js-options {;; Fix for https://github.com/thheller/shadow-cljs/issues/854
:babel-preset-config {:targets {:chrome 80}}}
:dev {:compiler-options {:output-feature-set :es8
:external-config
{:devtools/config
{:features-to-install [:formatters :hints]}}}}
:release {:compiler-options {:output-feature-set :es8
;; This has (at the time of writing) a 3x impact on the size of the build.
;; It's super valuable for debugging, but should be turned off at some point.
:pseudo-names true}
:output-dir "build/release/"}
:devtools {:log false
:reload-strategy :full
:use-document-protocol true
:preloads [factor.client.preload
sci.core
shadow.remote.runtime.cljs.browser]}}}}