Create-react-app: Confused about SVG files in 'Adding Images, Fonts, and Files' documentation

Created on 20 Dec 2018  路  3Comments  路  Source: facebook/create-react-app

Hello. Docs (https://github.com/facebook/create-react-app/blob/master/docusaurus/docs/adding-images-fonts-and-files.md) say that:

This applies to the following file extensions: bmp, gif, jpg, jpeg, and png. SVG files are excluded due to #1153.

Yet in next section we read:

One way to add SVG files was described in the section above.

I'm assuming that you can now import SVG files the same way as described in first section since #1153 seems to be fixed: https://github.com/facebook/create-react-app/pull/1180

stale

Most helpful comment

While we're at it the documentation says nothing about font files. Just tried importing an otf file which surprisingly gives you a module not found error.

All 3 comments

While we're at it the documentation says nothing about font files. Just tried importing an otf file which surprisingly gives you a module not found error.

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adrice727 picture adrice727  路  3Comments

rdamian3 picture rdamian3  路  3Comments

wereHamster picture wereHamster  路  3Comments

xgqfrms-GitHub picture xgqfrms-GitHub  路  3Comments

alleroux picture alleroux  路  3Comments