-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use svg-sprite-loader #6764
Use svg-sprite-loader #6764
Conversation
…sentry into use_webpack_svg_sprite_loader
Generated by 🚫 danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
if you break production though its on youuuuuu
@dcramer thanks lol. Did you catch the inline svg component? Wanna make sure it didn't get lost in all the svg changes. |
also to anyone who cares: i'm gonna finish changing over all these svgs in another pull to help simplify the process of releasing this thing |
…ested this in production and can confirm is works
This is tested and works on ie, chrome, and firefox. svg-sprite-loader takes advantage of
use
to create an svg sprite that get's webpacked in without the transpiling you get with other loaders.The setup is actually very simple and makes it much easier to export and import things between sketch and the app.
I included the svgo loader as an added free bonus 🌈 🎁 🦄
To keep things low-risk, this pull only changes two icons:
icon-copy
andicon-refresh
, which are both used inshareIssue.jsx
and are super easy to test.A follow-up pull will change the other 10 or so svg icons in the codebase.