Skip to content

Add .svg to url-loader, and update documentation? #3370

Closed
@thomastvedt

Description

@thomastvedt

Is this a bug report?

No

Which terms did you search for in User Guide?

Adding .svg images

Environment

  1. node -v: v6.11.3
  2. npm -v: 3.10.10
  3. yarn --version (if you use Yarn): 1.2.1
  4. npm ls react-scripts (if you haven’t ejected): [email protected]

In the user guide it says that:

To reduce the number of requests to the server, importing images that are less than 10,000 bytes returns a data URI instead of a path. This applies to the following file extensions: bmp, gif, jpg, jpeg, and png. SVG files are excluded due to #1153.

Bugs #1153 and #1180 are fixed. Should we add .svg to url-loader too? And update the user guide? I have a lot of small .svg files that could be a data URI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions