-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Override SVG Loader in custom Webpack #6758
Comments
Thanks for the advice but I was having still problems because the generated regex was a string and with an extra Here is my approach:
It is actually working in conjunction with |
Thanks for sharing! Updated my comment above. One thing I forgot to mention: I had the same problem in Gatsby.js. However, there it is neatly solved with their plugin approach. There exists one plugin which just deals with the SVGR integration. Maybe it would be great to have such approach for Storybook as well. CC @shilman |
@rwieruch we just started to release presets for this kind of thing. here's the first one: https://www.npmjs.com/package/@storybook/preset-typescript and here's the docs: #5333 Any interest in writing a |
Any interest: yes. But lack of time :( I will ask around in my React community! I guess it's a good issue for developers new to open source. |
Automention: Hey @igor-dv @ndelangen, you've been tagged! Can you give a hand here? |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Not sure whether this is explained somewhere, but I had to override the SVG loader used by Storybook to integrate SVG. In case someone stumbles upon this issue, here is what I have done in my custom Webpack config:
In case there is another approach to this, please leave a comment. Anyway, just thought this may help someone who runs into the same thing.
The text was updated successfully, but these errors were encountered: