[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] 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.
Describe the bug
1、This is a vue2 project, and I have a component like this
2、when I packaged, the image files can't copy to the dist folder, so my static web has some show question
3、when I pass img url props, the vite can't check it all and package to the dist folder.
I don't know if this is intentional (wanted me to put it in the public folder), or a bug
Reproduction
https://gitee.com/ma_zipeng/customer-static-web3.git
Steps to reproduce
1、you can build
2、you can use quickly-deploy lib to deploy
System Info
Used Package Manager
npm
Logs
No response
Validations