Referencing assets in a package


#1

Been having a rough time trying to reference asset paths in an atom package, before I dig any further, figured I would ask. Is it possible to reference assets inside of a package? Because ATM every asset link points back to the dmg contents. Any guidance would be appreciated.


#2

I found this in the docs: https://atom.io/docs/latest/creating-a-package#bundle-external-resources

The URLs should be in the format of atom://package-name/relative-path-to-package-of-resource, for example, the atom://image-view/images/transparent-background.gif would be equivalent to ~/.atom/packages/image-view/images/transparent-background.gif.