vite-plugin-vue2
vite-plugin-vue2 copied to clipboard
Unable to copy assets to dist folder during packaging
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
yarn build
2、you can use quickly-deploy lib to deploy
System Info
"dependencies": {
"vue": "^2.7.13",
"vue-router": "3.6.5"
},
"devDependencies": {
"@vitejs/plugin-vue2": "^2.0.0",
"sass": "1.54.9",
"vite": "3.2.5"
}
Used Package Manager
npm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [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.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.