The title says it all.
What is your front-end?
It really depends on your frontend framework but one way which should work almost everywhere in MeteorJS is the npm method described here https://fontawesome.com/docs/web/setup/host-yourself/svg-js#reference-font-awesome-in-your-project
With the added meteor bonus that you can just do
import * from '@fortawesome/fontawesome-free/js/all.js'
Or even use a dynamic import if you fancy that:
OK thx - very helpful!
Blaze/Bootstrap (MeteorKitchen) www.meteorkitchen.com
Just check for this option to avoid bloating your code with thousands of useless icons and styles. I am not sure if Meteor does any tree shaking on this.
You 100% want to use the subsetter like others have mentioned. It’s a pretty horrible tool and there’s no CLI but without it FA is huge. One thing to note is that the observeMutations behaviour has been broken in v6 so I’d stick to v5 if your icons can change (e.g. you have a status icon that updates reactively). See this bug for more details.