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

change image src base url #271

Open
SvenWangChina opened this issue Dec 13, 2024 · 1 comment
Open

change image src base url #271

SvenWangChina opened this issue Dec 13, 2024 · 1 comment

Comments

@SvenWangChina
Copy link

SvenWangChina commented Dec 13, 2024

Meteor v3.1
jorgenvatle:vite v1.0.4
meteor-vite v3.1.2
vite v6.0.3
@vitejs/plugin-vue v5.2.1

Original code:

<img src="/pages/member/Bonuse.png">

The Dom in Chrome:

<img src="/vite/pages/member/Bonuse.png">

I got following info when run meteor app:

> Meteor: http://localhost:3000/
> Vite: http://localhost:3000/vite

How to use "/pages/member/Bonuse.png" not "/vite/pages/member/Bonuse.png"? I set base: '/' in vite.config.js not work.

@JorgenVatle
Copy link
Owner

I think the /vite prefix may have been accidentally hardcoded in with the recent 3.0 update. I'll check and get back to you once a fix is in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants