Fonte da NPM incrível
npm install --save @fortawesome/fontawesome-free
yarn add @fortawesome/fontawesome-free
Bloody Buffalo
npm install --save @fortawesome/fontawesome-free
yarn add @fortawesome/fontawesome-free
npm install --save font-awesome
npm install --save @fortawesome/fontawesome-free
// or:
// also you can install Vue and React components.
npm install --save @fortawesome/vue-fontawesome
npm install --save @fortawesome/react-fontawesome
1.
// you can import the module in your js code.
import '@fortawesome/fontawesome-free/js/all.js';
2.
// if you are using Sass, you can import the module in app.scss.
@import '~@fortawesome/fontawesome-free/scss/fontawesome';
@import '~@fortawesome/fontawesome-free/scss/<type>';
import '@fortawesome/fontawesome-free/js/all.js';
@import '~@fortawesome/fontawesome-free/scss/fontawesome';
@import '~@fortawesome/fontawesome-free/scss/<type>';
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />