Files
logseq/web/shadow-cljs.edn
Tienson Qin 7f91a9bfd5 Publishing similar to read-only version of TiddlyWiki
We'll add write support after the code refactor.
2020-09-30 22:21:32 +08:00

47 lines
1.6 KiB
Clojure

;; shadow-cljs configuration
{:deps true
:nrepl {:port 8701}
:builds
{:app
{:target :browser
:modules {:main {:init-fn frontend.core/init}}
:output-dir "../resources/static/js"
:asset-path "/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
:modules {:main {:init-fn frontend.publishing/init}}
: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]}}}}