-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of using custom index.js template #386
Comments
Both config and cli option are supported |
Awesome this is exactly what I was looking for. Thanks! |
I wonder if the docs should link to the tests as examples at a minimum for the options. |
hmmm, it's not working for me.
i'm just trying to add a semicolon to the end of the exports 😢 script in package.json: "icons": "npx svgr --ext "tsx" --template ./materialsvgrtemplate.tsx --index-template ./indextemplate.ts --out-dir dashboard/src/js/ui/icons --icon --replace-attr-values "#506482=currentColor" dashboard/src/custom-material-icons", |
my bad, my cli was out of date by just a tiny bit! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
💬 Questions and Help
SVGR project is young, but please before asking your question:
After you can submit your question and we will be happy to help you!
I see there is an option to use a custom index.js template, but reading through the code, i'm not quite sure how to do that with the CLI. The code looks like it will call it as a function, do I need to use a
svgr.config.js
in order to do this instead of cli options?The text was updated successfully, but these errors were encountered: