What is url for image in project folder?


#1

I used to know this but I’ve forgotten and I can’t find it via search. What is the url to use in an image tag to load a file from an images folder? It was something like atom://blah.blah.blah.


#2

https://atom.io/docs/latest/creating-a-package#bundle-external-resources


#3

It’s a shame most of the answers are links to the documentation that don’t work anymore - especially as the docs search doesn’t work, and the answer could have been easily inlined.

Finally found this in someone’s PR from a zillion years ago.

<img src="atom://nameOfPlugin/path/to/resource.png" />