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

.svg?sprite are included in client side bundle #280

Open jlopezxs opened 2 years ago

jlopezxs commented 2 years ago

I don't know if this is the expected behaviour. But now I'm trying to reduce client side bundle size and analyzing it I see all the svg's as js modules. There are some config to only add it in server side or only import the id references like https://github.com/passionkind/svgid-loader?