gitFoxCode / nuxt-icons

Module for Nuxt allowing pleasant use of svg icons
188 stars 23 forks source link

Customizing the auto-import folder name ? #6

Closed mrleblanc101 closed 2 years ago

mrleblanc101 commented 2 years ago

Hi, In my org, we use assets/svg for icons, would it be possible to add an option to customize the folder ? Thanks

gitFoxCode commented 2 years ago

Currently this is not possible, but it's a great idea! In the next version there will be an option to choose your own folder name

lisaschumann commented 1 year ago

Hi @gitFoxCode - thanks for the great package. Is there a way yet to specify a custom folder name? I want to integrate this with a custom ui-library module within our project. Cheers!

gitFoxCode commented 1 year ago

@lisaschumann Hi, currently it is not possible to use a name other than "icons", this is due to many factors, I wanted first of all to get similar to Nuxt core system that "folder with this name automatically fetches things" etc., creating a special option to be able to customize the folder name would be problematic, because it would require reworking the module (currently uses import.meta.glob, which does not allow the use of variables). But for now you can: