You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make custom index template receive both the created files' names and the original icon files' names
Motivation
You could need to create an object into your index.{ext} containing the mapping between the original svg icons' strings and the React component, e.g. when some APIs indicate you what icon should be used by its name.
Example
If just the parameter was added to the template function, you could generate the index like this:
This improvement could let people generate their own npm scripts with more flexibility and could let them use them every time a new icon is added without having to operate manually.
The text was updated successfully, but these errors were encountered:
🚀 Feature Proposal
Make custom index template receive both the created files' names and the original icon files' names
Motivation
You could need to create an object into your
index.{ext}
containing the mapping between the original svg icons' strings and the React component, e.g. when some APIs indicate you what icon should be used by its name.Example
If just the parameter was added to the template function, you could generate the index like this:
Pitch
This improvement could let people generate their own npm scripts with more flexibility and could let them use them every time a new icon is added without having to operate manually.
The text was updated successfully, but these errors were encountered: