nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
273 stars 29 forks source link

`vite: { legacy: false }`: After running `run build`, assets resources cannot be accessed. #1332

Open medz opened 1 month ago

medz commented 1 month ago

Environment


Why? i using vite

Reproduction

https://stackblitz.com/~/github.com/medz/github-ocrw7j

Describe the bug

After enabling vite and running nuxi build, the static images will be renamed to xxx-xxx.png and referenced to xxx.xxx.png in the vue template.

Additional context

npm run build
npm run start

Logs

No response