I am creating a new package for Atom and i want to display icon in it.
What is the best way to include font-awesome (or other fonts) in my package ?
In the package.json, I tried to add “font-awesome” but I don’t know how to include it in my .less file (I can write the path to the “node_modules” folder but I don’t think it’s good to do that).
Also, i don’t think if adding fa in the dependencies is the best way to do it because if there are 10 packages who do that, Atom will download 10 times the same dependencies (maybe Atom already handle that problem?)…
I am thinking about few solutions:
- add fa in the dependencies
- create a “ressource” folder and put the font file
- write a package who will do that and “include” it in mine (only we can include other package)