-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
fix: add fallback for resolving url #7223
Conversation
It can't resolve this issues. If set the base URL to root on Linux and use vue plugin, vue plugin will import css by absolute path. And vite will replace base to /, and absolute path startWith base path will got a error. the plugin only worker in the |
you can config this in the error repo {
"pnpm": {
"overrides": {
"vite": "/path/vite/packages/vite",
"@vitejs/plugin-vue": "/path/vite/packages/plugin-vue"
}
}
} and then you can run your vite dist in the error repo |
IMO vue-plugin will tranform .vue into .js and work well. |
I use your code will run error. You try try. |
Indeed
You are right. I mistaken something. |
I try use your provide one to resolve. |
middleware will replace request url. plugin will replace file content. |
Description
fix vitejs/vite-plugin-vue#25
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes vitejs/vite#123
).