This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-18
Channels
- # adventofcode (26)
- # announcements (3)
- # babashka (12)
- # beginners (20)
- # biff (33)
- # cider (4)
- # clj-kondo (9)
- # cljdoc (17)
- # clojure (35)
- # clojure-art (6)
- # clojure-belgium (1)
- # clojure-denmark (1)
- # clojure-europe (1)
- # clojure-norway (25)
- # clojurescript (29)
- # conjure (19)
- # cryogen (1)
- # datomic (23)
- # honeysql (2)
- # java (3)
- # joyride (9)
- # lsp (24)
- # malli (3)
- # nbb (2)
- # off-topic (25)
- # pathom (2)
- # pedestal (8)
- # portal (1)
- # practicalli (7)
- # re-frame (1)
- # reitit (4)
- # releases (1)
- # shadow-cljs (14)
What's the standard way people include svg assets with shadow-cljs? It seems that :asset-path
is mostly intended for loading JS modules rather than other assets. My project separates cljs source and svg assets in separate folders (src and assets), respectively. Is there some shadow-cljs command to symlink the folder to my asset-path or is there a much better way to do this?
EDIT: For additional context, I am using the default server provided by shadow-cljs. I suppose it wont hurt to finally have a proper server in the front-end
nothing is provided to handle any kind of assets. usually you just put them in the public
folder and access them by path
Right. I wanted to avoid that since public
typically contained compiled cljs artifacts. But I suppose I can also restructure my project so that I always have a public
folder with my assets, then I can simply add public/js
to my .gitignore
Is there a way I denote that a namespace should require every Google source, regardless of if it imported it or not? I’d like to make sure that when a specific namespace is compiled that cljs_env.js
has all the Google classes and sources
I guess the alternative is to just manually add all of the possible Google namespaces as imports?
the question is again for why you'd want to do that? what are you trying to do? some namespaces are goog.module's they only work in the namespace they were required in
It’s mainly to simplify some compilation step I need to perform for a project I’m working on. I’ll keep brainstorming ways to approach it, thanks!