nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
864 stars 37 forks source link

feat: support custom collections from layers #172

Closed Morgbn closed 2 weeks ago

Morgbn commented 3 weeks ago

Hello, firstly, thank you for this package! I like the new approach of the v1.

Here's a PR to support customCollections from layers It's common to use in layers const { resolve } = createResolver(import.meta.url), but currently, all customCollections.dir paths were prefixed with nuxt.options.rootDir

This PR just adds an isAbsolute check, and adds a base layer in the playground for test purpose