File path for assets used in packages


#1

How do I get the file path to be able to use assets in a plugin?


#2

This is a good example:

https://github.com/atom/image-view/blob/master/stylesheets/image-view.less#L13


#3

@AbeEstrada so there is no way to do this from JS land? it must be via a bg image in LESS?


#4

You can use atom://<PACKAGE NAME>/<LOCATION>/<FILE.EXT>


#5

OK so it has to be called in via an http style URL, got it! Thanks!