epicweb-dev / epic-stack

This is a Full Stack app starter with the foundational things setup and configured for you to hit the ground running on your next EPIC idea.
https://www.epicweb.dev/epic-stack
MIT License
4.47k stars 368 forks source link

fix: ignore inlining small assets for the svg sprite #726

Closed sorodrigo closed 5 months ago

sorodrigo commented 5 months ago

Vite by default will inline small assets to avoid extra requests, this wont work when using sprites. In this case we need to make sure the file is referenced as an URL otherwise the browser will block it.

See:

Test Plan

Checklist

Screenshots