Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
medz opened this issue Oct 19, 2024 · 0 comments

Comments

@medz
Copy link

medz commented Oct 19, 2024

Environment


  • Operating System: Darwin
  • Node Version: v22.9.0
  • Nuxt Version: 2.18.1
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

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

@medz medz changed the title vite: { legacy: false }: After running 'npm run build', assets resources cannot be accessed. vite: { legacy: false }: After running run build, assets resources cannot be accessed. Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant