forked from logseq/logseq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadow-cljs.edn
56 lines (50 loc) · 1.97 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
55
56
;; shadow-cljs configuration
{:deps true
:nrepl {:port 8701}
:builds
{:app
{:target :browser
:module-loader true
:modules {:main {:init-fn frontend.core/init}
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}}
:output-dir "../resources/static/js"
:asset-path "/static/js"
:release {:asset-path "https://asset.logseq.com/static/js"}
:compiler-options {:infer-externs :auto
:output-feature-set :es6
:externs ["datascript/externs.js"
"externs.js"]}
;; TODO: purge-css not working properly
;; :build-hooks [(shadow.hooks/purge-css
;; {:css-source "node_modules/@tailwindcss/ui/dist/tailwind-ui.min.css"
;; :js-globs ["resources/static/js/*.js"]
;; :public-dir "resources/static/css"})]
:devtools
;; before live-reloading any code call this function
{:before-load frontend.core/stop
;; after live-reloading finishes call this function
:after-load frontend.core/start
:preloads [devtools.preload]}}
:publishing
{:target :browser
:module-loader true
:modules {:main {:init-fn frontend.publishing/init}
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}}
:release {:asset-path "https://asset.logseq.com/static/js"}
:output-dir "../resources/static/js/publishing"
:asset-path "/static/js"
:closure-defines {frontend.config/PUBLISHING true}
:compiler-options {:infer-externs :auto
:output-feature-set :es6
:externs ["datascript/externs.js"
"externs.js"]}
:devtools
;; before live-reloading any code call this function
{:before-load frontend.core/stop
;; after live-reloading finishes call this function
:after-load frontend.core/start
:preloads [devtools.preload]}}}}