NOTE: Seems like there is plan to migrate nuxt-fontawesome to @nuxtjs/fontawesome
Install
npm i nuxt-fontawesomenpm i @fortawesome/fontawesome-svg-core @fortawesome/vue-fontawesomeIf you are using the pro set
npm i @fortawesome/pro-regular-svg-iconsNOTE: Installing the Pro version of Font Awesome
Edit nuxt.config.js.
export default { modules: [ 'nuxt-fontawesome' ], fontawesome: { imports: [ { set: '@fortawesome/pro-regular-svg-icons', icons: ['faMapMarker'] // selectively import set to reduce size, use 'fas' to import entire set } ] },}Usage in components
<template> <div> <font-awesome-icon :icon="['far', 'map-marker']" /> </div></template>NOTE: Refer vue-fontawesome for more usage example.
References: