Uh oh!
There was an error while loading. Please reload this page.
Use file-loader for svgs - #1180
Conversation
facebook-github-bot
commented
Dec 6, 2016
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions. |
facebook-github-bot
commented
Dec 6, 2016
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
gaearon
commented
Dec 6, 2016
Thank you! |
* master: (30 commits) Relax peerDependencies for ESLint preset (react#1191) Update Webpack to fix source map issues (react#1188) Update webpack prod config (react#1181) Chrome 'open tab' reuse an empty tab when possible (react#1165) Use file-loader for svgs (react#1180) Fix Babel issues in tests by applying the right transforms (react#1179) [babel-preset-react-app] Temporary fix missing babel plugins (react#1177) Add Subresource Integrity support (react#1176) Remove path module from webpack config on eject. (react#1175) Don't strip stack traces of evaluated webpack bundles (react#1050) Add deploy to Firebase CDN on template's README (Closesreact#374) (react#1143) Update e2e.sh (react#1167) Document what npm build does and pushState (react#933) Fix minor typo/grammar (react#1099) Add "npm run build silently fails" to Troubleshooting (react#1168) Add testURL to jest config (react#1120) Make jsx-no-undef rule an error (react#1159) Update CHANGELOG.md Publish Update changelog for 0.8.1 ...
gaearon
commented
Dec 7, 2016
Fixed in 0.8.2. https://github.com/facebookincubator/create-react-app/releases/tag/v0.8.2 |
mortenko
commented
Sep 9, 2017
Hi Guys, I'm considering that problem with SVG is solved ? So, can I use svg in create-react-app? If yes, then documentation should be also updated. |
gaearon
commented
Sep 10, 2017
There has been no problem with using SVG. And in fact the default generated app contains an SVG. This issue was specifically about sprites. (Which were also fixed.) |
This pull request closes issue #1153 .
The problem with base64 inlining svgs is that it breaks fragment identifiers which are used in sprite systems .
If the user wants to inline an svg they could put it directly into components like @gaearonsaid