This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-27
Channels
- # babashka (45)
- # beginners (44)
- # calva (3)
- # cider (14)
- # clara (4)
- # clj-commons (3)
- # clj-otel (4)
- # cljsjs (1)
- # cljsrn (111)
- # clojars (5)
- # clojure (62)
- # clojure-europe (14)
- # clojure-nl (2)
- # clojure-uk (4)
- # clojurescript (31)
- # community-development (16)
- # conjure (7)
- # cursive (9)
- # data-science (1)
- # datalevin (10)
- # docker (1)
- # emacs (20)
- # fulcro (7)
- # helix (10)
- # jobs (4)
- # lsp (22)
- # malli (35)
- # meander (12)
- # music (1)
- # nbb (2)
- # off-topic (5)
- # pathom (3)
- # quil (1)
- # re-frame (12)
- # react (6)
- # reagent (18)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (4)
- # ring (1)
- # shadow-cljs (10)
- # spacemacs (9)
- # tools-build (17)
apologies if this is a very stupid question…
I have added :module-hash-names true
and understand the contents of manifest.edn
but where / how can I go about specifying the correct file name in index.html
(the script src
)?
do you have an actual static index.html? most setups use some sort of server to generate html?
if you have an actual index.html you can use this hook https://github.com/thheller/shadow-cljs/blob/master/shadow-cljs.edn#L154-L156
Maybe I’m doing something incorrectly here:
:target :browser
:compiler-options {:externs ["resources/lib/ext/oidc-client-ts.ext.js"]}
:module-hash-names true
:output-dir "resources/public/js"
:asset-path "/js"
:build-hooks [(shadow.html/copy-file
"resources/index.src.html"
"resources/public/index.html")]
:modules {:main {:init-fn co.flair.fleet.core/init}}
I put my static index file in resources/index.src.html
and it has the tag <script src="/js/app.js"></script>
but when I run shadow-cljs release app
it copies the index file to resources/public/index.html
but it doesn’t rewrite the script tag