I've installed fontawesome with npm:
npm i --save @fortawesome/fontawesome
Now directory @fortawesome appeared under node_modules, but how exactly to use it?
import fontawesome from '@fortawesome/fontawesome' import faUser from '@fortawesome/fontawesome-free-solid/faUser' import faCircle from '@fortawesome/fontawesome-free-regular/faCircle' import faFacebook from '@fortawesome/fontawesome-free-brands/faFacebook' fontawesome.library.add(faUser) fontawesome.library.add(faCircle) fontawesome.library.add(faFacebook)
But where to place it? I want to use fontawesome 5 locally without any CDN's.
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.