unplugin-icons icon indicating copy to clipboard operation
unplugin-icons copied to clipboard

Custom icons problem

Open playertk opened this issue 4 years ago • 0 comments

customCollections: {
        // key as the collection name
        'my-icons': {
          play: '<svg><!-- ... --></svg>',
          // load your custom icon lazily
          settings: () => fs.readFile('../public/svg-icon/play.svg', 'utf-8'),
          /* ... */
        },
      },

// generated by unplugin-vue-components

 Iconplay: typeof import('~icons/ic/onplay')['default']

console.error

Icon `ic:onplay` not found

There seems to be a problem with the automatically generated path The correct path is more likely to be like this

 Iconplay: typeof import('~icons/my-icons/play')['default']

playertk avatar Jan 13 '22 01:01 playertk