figwheel-main

figwheel-main http://figwheel.org
Ella Hoeppner 2020-09-03T17:48:54.003800Z

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?

2020-09-03T18:11:49.004900Z

@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?

Ella Hoeppner 2020-09-03T18:25:29.005300Z

Oh, yep, that worked! Thanks 😅

Ella Hoeppner 2020-09-03T18:26:28.006600Z

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!

1
grumplet 2020-09-03T21:32:49.006800Z

Not sure why you are using deps.cljs. Do you mean deps.edn?