unplugin / unplugin-icons

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

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

Closed recallwei closed 9 months ago

recallwei commented 9 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 9 months ago

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

recallwei commented 9 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 9 months ago

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