SVG Feature generates unused SVG files in dist folder when inlining SVGs #12853
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: assets
Related to the Assets feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am using the experimental SVG feature. Configured like this:
Then I am importing and using images like this:
When generating the static HTML files using
pnpm build
I can see that the SVG images are indeed inlined in the generated HTML files but the dist/assets folder still contains now unused SVG files:What's the expected result?
SVG files that are inlined shall not be generated in the
dist/assets
directory.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-fvh9vkpy
Participation
The text was updated successfully, but these errors were encountered: