Have the ability to set SVGR built-in configuration
See original GitHub issueQuestion
How can I configure the SVGR built-in?
My current loader looks like this:
test: /\.svg$/,
use: {
loader: '@svgr/webpack',
options: {
icon: true,
replaceAttrValues: {
'#1a171b': 'currentColor'
}
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Options - SVGR
Options · Config file · Runtime config · JSX runtime · JSX runtime import source · Icon · Native · TypeScript · Dimensions....
Read more >Try to test component with React generated form svgr · Issue #83
Hi, I have a little problem with Jest tests runner. My simple component: import React from 'react'; import {ReactComponent as CloseIcon} ...
Read more >Pass options to the builtin svgo from svgr/webpack
In my case I got errors that: plugins should be an array;; Each plugin object requires a name property. So here is what...
Read more >How To Import SVGs into NextJS | Frontend Digest
1. Use SVGR ... SVGR is a tool that allows us to import SVGs into your React applications as React components. If you...
Read more >SVG Components in React - YouTube
SVG is great as you get to scale it without loss of quality. In this lesson we look at various ways you can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @danielbayerlein, that’s is something that we need to put on doczrc. I’ll do that and put for the last release 🙏
You can use the modifyBundlerConfig