Skip to content
New issue

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

How to import all icons without one by one #60

Open
muhammadjabir445 opened this issue Feb 15, 2022 · 4 comments
Open

How to import all icons without one by one #60

muhammadjabir445 opened this issue Feb 15, 2022 · 4 comments

Comments

@muhammadjabir445
Copy link

How to import all icons without one by one

@thisVioletHydra
Copy link

kek

@DanielTerletzkiy
Copy link

Sorry for the forEach mess, didnt´t seem to work, when using Unicon.add(uc); !
But aside that is does the job

//Vue 2 import
import Unicon from 'vue-unicons/dist/vue-unicons-vue2.es'
import * as uc from 'vue-unicons/dist/icons'

/*...*/

const objArray: Array<object> = [];
    Object.keys(uc).forEach(key => objArray.push(
    uc[key]
));
Unicon.add(objArray)
Vue.use(Unicon)

@adrielkirch
Copy link

@DanielTerletzkiy @muhammadjabir445 @thisVioletHydra Hey guys, have you solved this issue ?

@thisVioletHydra
Copy link

try vite plugin importus, maybe help u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants