vue-unicons
vue-unicons copied to clipboard
How to import all icons without one by one
How to import all icons without one by one
kek
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)
@DanielTerletzkiy @muhammadjabir445 @thisVioletHydra Hey guys, have you solved this issue ?
try vite plugin importus, maybe help u