font awesome install code example

Example 1: font awesome npm

npm install --save @fortawesome/fontawesome-free

Example 2: install font awesome

npm install --save @fortawesome/fontawesome-free
$fa-font-path:        "../webfonts";
@import "~@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "~@fortawesome/fontawesome-free/scss/solid.scss";
@import "~@fortawesome/fontawesome-free/scss/brands.scss";
@import "~@fortawesome/fontawesome-free/scss/regular.scss";
please email me [email protected] if you have any issues.

Example 3: how to install font-aweseome usin npm

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />

Example 4: npm font awesome 5

import '@fortawesome/fontawesome-free/js/all.js';

Example 5: npm font awesome 5

@import '~@fortawesome/fontawesome-free/scss/fontawesome';
@import '~@fortawesome/fontawesome-free/scss/<type>';

Example 6: font awesome cdn

<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>