1. 先使用 yarn 来安装 package
yarn add @fortawesome/fontawesome-free
  1. 添加 asset 编译到 app.scss ,这样可以自动编译
@import '~@fortawesome/fontawesome-free/scss/brands';
@import '~@fortawesome/fontawesome-free/scss/regular';
@import '~@fortawesome/fontawesome-free/scss/solid';
@import '~@fortawesome/fontawesome-free/scss/fontawesome';