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).