cyrilwanner / next-optimized-images

🌅 next-optimized-images automatically optimizes images used in next.js projects (jpeg, png, svg, webp and gif).
MIT License
2.21k stars 93 forks source link

add support for svg components #299

Open alighafoorzade opened 1 year ago

alighafoorzade commented 1 year ago

To enable maintainability and customizable SVGs, some projects opt to create a dedicated component for each icon and encapsulate the SVG code within. A sample code snippet for this approach is shown below: `const AvatarIcon = () => { return

... . . . } ` Are there any workarounds or techniques to optimize these assets? If not, I believe it would be valuable to explore potential optimizations. Thank you.