mirror of https://github.com/logseq/logseq
26 lines
835 B
Plaintext
26 lines
835 B
Plaintext
;; shadow-cljs configuration
|
|
{:deps true
|
|
:nrepl {:port 8701}
|
|
|
|
:builds
|
|
{:app
|
|
{:target :browser
|
|
:modules {:main {:init-fn frontend.core/init}}
|
|
|
|
:output-dir "resources/public/js"
|
|
:asset-path "/js"
|
|
|
|
:compiler-options {:infer-externs :auto
|
|
:externs ["datascript/externs.js"]}
|
|
;; TODO: purge-css not working properly
|
|
;; :build-hooks [(shadow.hooks/purge-css
|
|
;; {:css-source "node_modules/tailwindcss/dist/tailwind.min.css"
|
|
;; :js-globs ["public/js/*.js"]
|
|
;; :public-dir "public/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]}}}}
|