Fork me on GitHub
Ella Hoeppner17:09:54

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?

Ella Hoeppner18:09:29

Oh, yep, that worked! Thanks 😅

Ella Hoeppner18:09:28

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!