@farmfe/js-plugin-svgr
Support React SVG Components
for Farm.
Installation
- npm
- yarn
- pnpm
Usage
Options
svgrOptions
See svgr options for more details.
Example:
filters
Which files should be processed by svgr
. Default to { resolvedPaths: ['\\.svg$'] }
.
resolvedPaths
: Only files under these paths will be processed. Support regex.
Example: