Skip to content

SVG support #5

@maxceem

Description

@maxceem

When I use topcoder-react-utils as it is, I had lots of issues with SVG files.

I've added the next rule from community app and all issues with SVG gone https://github.com/topcoder-platform/community-app/blob/develop/config/webpack/default.js#L20-L27

    rules: [{
      test: /\.svg$/,
      loader: 'file-loader',
      options: {
        outputPath: '/images/',
        publicPath: '/community-app-assets',
      },
    }],

Didn't dig deep why is it like this. But probably this rule can be added to topcoder-react-utils so SVG works out of the box.

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