Asset path is wrongly relative to the user’s root not the root of the output when it built on windows system. #13406
Labels
duplicate
This issue or pull request already exists
p2-edge-case
Bug, but has workaround or limited in scope (priority)
windows only
Describe the bug
I was developing a plugin aims to reflect virtual file into the ouput, but I found there's something wrong with it on windows.
Here is my config where I customize a simple plugin to proxy virtual file
fruit/index.html
.When I set base to
''
or'./'
, the problem occurs. I tried to reproduce it on Mac OS but failed, everything works well.Reproduction
https://stackblitz.com/edit/vitejs-vite-mhjhr4
Steps to reproduce
Just uses
yarn create vite
to create a new project on window system and use config provided above to build, you'll get a weird result in which thefruit/index.html
looks like:System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: