How to: Use Font Awesome 5 in your Sage theme

Perhaps handy for pseudo classers out there but 5.1 broke that for me and got it working again like this:

import { config, library, dom } from '@fortawesome/fontawesome-svg-core';
import { faUser } from '@fortawesome/pro-regular-svg-icons';

config.searchPseudoElements=true;

library.add(faUser);

dom.watch();
1 Like