This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-07-10
Channels
- # announcements (1)
- # babashka (17)
- # biff (7)
- # calva (6)
- # clerk (5)
- # clj-on-windows (1)
- # clojure (59)
- # clojure-austin (17)
- # clojure-brasil (1)
- # clojure-europe (40)
- # clojure-nl (2)
- # clojure-norway (103)
- # clojure-sweden (9)
- # clojure-uk (8)
- # clojurescript (8)
- # cursive (25)
- # data-science (5)
- # datalevin (7)
- # datomic (4)
- # emacs (8)
- # etaoin (13)
- # hyperfiddle (26)
- # lsp (8)
- # malli (7)
- # off-topic (9)
- # polylith (13)
- # releases (2)
- # sql (7)
I've got a lein-figwheel app that I would like to run a macro for at compile time, to generate the index.html . How do I make that part of the initialisation on build?
I suppose I could use an alias to shell out to e.g. clj or bb before running the actual build command. But I'd like for it to be part of the build task, if I can
Not familiar with how lein-figwheel does things, but can't you just add a (generate-index)
macro to some CLJS file?
Such an approach does feel wrong to me and I would rather have a shell script run both index generation and CLJS compilation, but that's just me.
Hmmm that's a catch 22 kind of situation, no? You need some existing index.html to load the cljs file at runtime, right?