nuxt-community / fontawesome-module

Module to use Font Awesome icons in Nuxt.js
MIT License
110 stars 12 forks source link

Nuxt 3 compatibility? #49

Open safejace opened 2 years ago

safejace commented 2 years ago

just tried to generate my nuxt site with npx nuxi generate

using nuxt rc-3

getting this warning:

WARN                                                                          15:54:43
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

ℹ Client built in 15227ms                                                      15:54:43
ℹ Building server...                                                           15:54:43

 WARN  @fortawesome/fontawesome-pro doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
zacwebb commented 2 years ago

Just in case anyone else stumbles upon this I managed to get it going with Font Awesome 6 and Nuxt 3 by using following the guide from Font Awesome themselves: https://fontawesome.com/docs/web/use-with/vue/use-with#nuxt