This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-03
Channels
- # announcements (11)
- # atom-editor (8)
- # aws (16)
- # babashka (34)
- # beginners (59)
- # calva (32)
- # cider (8)
- # clj-kondo (43)
- # cljs-dev (52)
- # clojure (26)
- # clojure-europe (11)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-spec (16)
- # clojure-uk (44)
- # clojurescript (5)
- # core-async (21)
- # cursive (14)
- # datomic (53)
- # figwheel-main (4)
- # fulcro (5)
- # graphql (6)
- # java (3)
- # kaocha (5)
- # leiningen (6)
- # local-first-clojure (1)
- # malli (25)
- # off-topic (40)
- # other-languages (1)
- # pathom (5)
- # pedestal (3)
- # re-frame (4)
- # reitit (2)
- # reveal (8)
- # rum (21)
- # sci (16)
- # shadow-cljs (90)
- # spacemacs (8)
- # tools-deps (10)
- # vrac (6)
- # xtdb (12)
hey, I've been playing around with figwheel and I've got a question: I have an image file that I want to be able to access from javascript. How can I do this? Is there a way to make figwheel serve up arbitrary files in a way that they can be accessed from js?
@ellahoeppner When you say access what do you want to do with it? You can place the file in resouces/public/
and then access it as per normal, unless you mean something else?
Oh, yep, that worked! Thanks 😅
I had tried to place the file in resources/public/
before and when I looked for it in the "sources" tab in chrome it didn't show up, so I thought it wasn't working, but when I actually try to load the image from js it works fine. My bad!