We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, it is possible to not list all icons used on a whole site in nuxt.config.js, but benefit from tree shaking (load only icons used on the page)?
Ideally without strange technique using computed property.
The text was updated successfully, but these errors were encountered:
I think you can always use locally imported icons instead of gloable.
Use locally imported icons
<template> <div> <fa-layers full-width class="fa-4x"> <fa :icon="fas.faCircle"/> <fa-layers-text transform="shrink-12" value="GALSD" class="fa-inverse" /> </fa-layers> <fa :icon="fas.faAddressBook" /> <fa :icon="faGithub" /> </div> </template> <script> import { fas } from '@fortawesome/free-solid-svg-icons' import { faGithub } from '@fortawesome/free-brands-svg-icons' export default { computed: { fas () { return fas // NOT RECOMMENDED }, faGithub () { return faGithub } }, } </script>
Sorry, something went wrong.
No branches or pull requests
Hello,
it is possible to not list all icons used on a whole site in nuxt.config.js, but benefit from tree shaking (load only icons used on the page)?
Ideally without strange technique using computed property.
The text was updated successfully, but these errors were encountered: