unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.65k stars 131 forks source link

docs: auto import resolver diable prefix should be prefix = '' #348

Closed recallwei closed 4 months ago

recallwei commented 4 months ago

Description

If want to disable the resolver prefix, prefix: false seems not working. prefix: '' will work. And also in the comment below:

image

prefix = false caused an error:

image

Linked Issues

Additional context

stackblitz[bot] commented 4 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

recallwei commented 4 months ago

Maybe I was wrong, I found the problem, it was because false was parsed. It fits the fa collection and I use @iconify/json.

recallwei commented 4 months ago

Both prefix = '' and prefix = false are work.