Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #5273
Closed
Open
Issue created Oct 03, 2018 by Administrator@rootContributor

CRA2 style tag with svg as component

Created by: tnargib

Is this a bug report?

No.

I would like to use the new svg as react component feature from CRA2 but svgr keeps removing the tag from my image. What I want is to use the <code>inlineStyles</code> plugin from svgo to transform the style tag into properties of the svg tag.</p> <p data-sourcepos="13:1-13:220">As I can see in #5062 and #4799 svgo has been disabled. Is there any way I can override the default configuration ? I have tried with a <code>.svgrrc.json</code>, a <code>.svgo.yml</code> and <code>svgr</code> key in the package.json but nothing worked.</p>

Assignee
Assign to
Time tracking