gitFoxCode / nuxt-icons

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

Configuration option: icons path #49

Open CasperSocio opened 1 year ago

CasperSocio commented 1 year ago

I need to load my icons from a package without saving them to assets/icons. We get our icons from a shared component library which has a package containing all our system icons. These icons should be able to change without our teams intervention. I see that you have the path hardcoded in getIcon(), but would it be possible to add a configuration option for where to look for svg files?

// some config file
{
  path: '@my-components/icons/svg'
}
gitFoxCode commented 1 year ago

Hey, the globe does not allow the use of variables, maybe it can be done other way, but I haven't found anything like that yet, currently I don't have the time to manage this module and add news features but PRs are welcome

CasperSocio commented 1 year ago

I'll see if I can find another approach and submit a PR.