Skip to content

Feature Request: Recursive search in customCollections directories #374

Open
@Flashantik

Description

@Flashantik

Currently, when using the customCollections configuration in Nuxt/icon module, it only searches for icons in the specified directory but does not look into nested subdirectories.
For example, if I set:

// nuxt.config.js
export default defineNuxtConfig({
  modules: ['nuxt-icon'],
  icon: {
    customCollections: {
      'my-collection': '/path/to/icons'
    }
  }
})

The module will only find icons directly inside /path/to/icons but not in /path/to/icons/subfolder/.

Image Image

Requested Feature
I would like the module to support recursive searching in customCollections directories, allowing it to find icons in all nested subdirectories like wor

Steps to Reproduce
https://stackblitz.com/edit/github-monhzc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions