| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- ;; 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"]}
- :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]}}}}
|