Closed uncenter closed 6 months ago
Something like...
{ sources: [{ name: 'custom', path: './src/icons', getFilename: (iconName) => iconName + '-solid.svg' }]; }
Given the example above, {% icon "custom:my-icon" %} would look for the file ./src/icons/my-icon-solid.svg (path + getFilename).
{% icon "custom:my-icon" %}
./src/icons/my-icon-solid.svg
path
getFilename
cc @ryanccn
Something like...
Given the example above,
{% icon "custom:my-icon" %}
would look for the file./src/icons/my-icon-solid.svg
(path
+getFilename
).cc @ryanccn