fontawesome.js 1.1 KB

123456789101112131415161718192021
  1. import { library, config } from '@fortawesome/fontawesome-svg-core'
  2. import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
  3. import { faEnvelope, faBlog, faCookieBite, faCircleXmark, faLink } from '@fortawesome/free-solid-svg-icons';
  4. import { faCircleQuestion, faCopyright } from '@fortawesome/free-regular-svg-icons';
  5. import { faOrcid, faLinkedin, faGithub, faAppStoreIos, faGooglePlay, faTwitter, faInstagram, faMastodon, faFlickr, faSoundcloud, faYoutube, faDeviantart } from '@fortawesome/free-brands-svg-icons'
  6. // This is important, we are going to let Nuxt worry about the CSS
  7. config.autoAddCss = false;
  8. // You can add your icons directly in this plugin. See other examples for how you
  9. // can add other styles or just individual icons.
  10. library.add(
  11. faEnvelope, faBlog, faCookieBite, faCircleXmark, faLink,
  12. faCircleQuestion, faCopyright,
  13. faOrcid, faLinkedin, faGithub, faAppStoreIos, faGooglePlay, faTwitter, faInstagram, faMastodon, faFlickr, faSoundcloud, faYoutube, faDeviantart
  14. );
  15. export default defineNuxtPlugin((nuxtApp) => {
  16. nuxtApp.vueApp.component('fa-icon', FontAwesomeIcon);
  17. })