Skip to content
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

Merged
merged 19 commits into from
Dec 15, 2017
Merged

Use svg-sprite-loader #6764

merged 19 commits into from
Dec 15, 2017

Conversation

Chrissy
Copy link
Contributor

@Chrissy Chrissy commented Dec 14, 2017

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 and icon-refresh, which are both used in shareIssue.jsx and are super easy to test.

A follow-up pull will change the other 10 or so svg icons in the codebase.

@ghost
Copy link

ghost commented Dec 14, 2017

1 Warning
⚠️ You should update CHANGES due to the size of this PR

Generated by 🚫 danger

Copy link
Member

@dcramer dcramer left a 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

@Chrissy
Copy link
Contributor Author

Chrissy commented Dec 14, 2017

@dcramer thanks lol. Did you catch the inline svg component? Wanna make sure it didn't get lost in all the svg changes.

@Chrissy
Copy link
Contributor Author

Chrissy commented Dec 14, 2017

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

@Chrissy Chrissy merged commit 345ff81 into master Dec 15, 2017
@Chrissy Chrissy deleted the use_webpack_svg_sprite_loader branch December 21, 2017 23:03
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants