| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
Sorry, something went wrong.
npm i https://pkg.pr.new/unplugin-icons@425 commit: 3aec879 |
Sorry, something went wrong.
There was a problem hiding this comment.
I am not sure about this solution, as this would require users to write their own resolvers, which would cost too much work and introduce a lot of false negatives. And I would not expect majority of our users aware of this config and know how to write the resolver.
I would wish something more smart/automatic.
Maybe we should host the fs loading, to introduce a new option to set the relationship between files and icon conventions, where we augment FileSystemIconLoader internally, while still having the information for HMR.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
This PR adds HMR support for Vite (only) for local SVG files, added a new hmrResolver option to resolve local icon collection/name from the file.
Linked Issues
resolves #424
Additional context
/cc @antfu maybe we can also add support for webpack and some others bundlers but I'm lazy to check them (sorry 🙏)