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
Hey guys, I wanted to copy over my images assets to the built assets. I added import.meta.glob('../images/**'); to my app.js file, and ran the build command. But it looks like there was an issue with one of the images, and it failed to be imported. The thing is, if I select that image specifically and remove the wildcard, it is correctly imported. But if I let the wildcard up, only a few images are imported (I guess until it reaches the problematic image in the process).
I created a project with the issue (it's a Laravel project but whatever, it demonstrates the issue well). The problematic image is production_icon.jpg.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Closing as this is fixed by #9928 that is release with 3.2.0-beta.1.
After upgrading, you can see manifest.json including both production_icon.png and logo.png. (Since they are the same image, they point to the same file.)
Describe the bug
Hey guys, I wanted to copy over my images assets to the built assets. I added import.meta.glob('../images/**'); to my app.js file, and ran the build command. But it looks like there was an issue with one of the images, and it failed to be imported. The thing is, if I select that image specifically and remove the wildcard, it is correctly imported. But if I let the wildcard up, only a few images are imported (I guess until it reaches the problematic image in the process).
I created a project with the issue (it's a Laravel project but whatever, it demonstrates the issue well). The problematic image is production_icon.jpg.
Reproduction
https://github.com/JerryBels/vite-image-bug
Steps to reproduce
npm install
npm run build
see that the production_icon.png image hasn't been imported.
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: