How to add fonts coming from npm package

Hi!

I want to add this font. But I don’t know how to tell sage that the font files are in the node_modules folder (like we do with js and css imports).

Is there a proper way to do it?

Thank you in advance!

I answer my own question: If the package has a css with the referenced font, and you import this file into main.scss sage generates the font assets in dist/vendor automatically. Yeaaah!!! :metal:

1 Like