Q:

How to configure Font Awesome in Buefy

Can someone let me know some examples of how to add and configure Font Awesome 5 fonts to Buefy using NPM. 
The documentation on this is quite sparse. Thanks! 
https://buefy.github.io/documentation/start

A:

To use NPM instead of a CDN:

Install nuxt-fontawesome.

npm i nuxt-fontawesome
npm i @fortawesome/fontawesome-svg-core @fortawesome/vue-fontawesome

Install an icon set, for example:

npm i @fortawesome/free-solid-svg-icons

Edit nuxt.config.js as follows:

modules: [
  'nuxt-buefy',
  'nuxt-fontawesome'
],
buefy: {
  materialDesignIcons: false,
  defaultIconPack: 'fas',
  defaultIconComponent: 'font-awesome-icon'
},
fontawesome: {
  imports: [
    {
      set: '@fortawesome/free-solid-svg-icons',
      icons: ['fas']
    }
  ]
}

Usage example:
<b-icon pack="fas" icon="home" size="is-large" />

