vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
551 stars 48 forks source link

Unable to copy assets to dist folder during packaging #79

Open sishen654 opened 1 year ago

sishen654 commented 1 year ago

Describe the bug

1、This is a vue2 project, and I have a component like this

image

2、when I packaged, the image files can't copy to the dist folder, so my static web has some show question

image

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