-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
'alias' option dose not work on image's src #1343
Comments
version:vite2demo:https://github.com/rollup/plugins/tree/master/packages/alias#rollupplugin-alias
有不对的请及时说明 |
I tried but not work @dmyz |
This is fixed in |
@yyx990803 |
@yyx990803 Adding an ending slash still not work for me, I will create a new issue later. |
Can you please consider to release this version soon @yyx990803, thank you |
@yyx990803 Just updated an app that had this issue, and it's almost fixed. In my case, I'm using backend integration. Devserver is served at domain:3000, backend serves at domain. Vite uses :3000 correctly for modules/hmr, but seemingly not for assets. As a result, images are being requested at domain, and not domain:3000. Is there an additional config prop I need to set so that images are loaded with full paths? |
on 'vite.config.ts'
then I use the path with 'alias'
The text was updated successfully, but these errors were encountered: