You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could simply copy the file into my own repo's public folder, but it is then duplicated. If I import the file elsewhere in my JavaScript, there will be two copies uploaded to the CDN.
Description
As a developer using Vite I want to import files (e.g. an SVG icon) from a dependency in the HTML template.
See example: https://stackblitz.com/edit/vitejs-vite-l1zbnrgk?file=packages%2Fweb-app%2Findex.html
Suggested solution
Unaware
Alternative
I could simply copy the file into my own repo's public folder, but it is then duplicated. If I import the file elsewhere in my JavaScript, there will be two copies uploaded to the CDN.
Additional context
https://stackblitz.com/edit/vitejs-vite-l1zbnrgk?file=packages%2Fweb-app%2Findex.html
Validations
The text was updated successfully, but these errors were encountered: