You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run some pages from a subdirectory that can change over time so it would be nice that the generated paths for the files start with "./" instead of "/". So the browser would start from the current location where he found the index.html
Edit: Another use case would be Electron which needs the dot in front of the files to work with the file protocol.
Describe the proposed solution
I would like that all the files that are part of the generated index.html to start with ./
If there is already a possibility that would be nice. I have played around with the paths property, but it seems that it does not allow what I would like to have. I have used the static adapter if that makes a difference.
Edit:
Just checked the vite docs. Vite would allow me to do exactly this and its also mentioned in the docs https://vitejs.dev/config/#base
The text was updated successfully, but these errors were encountered:
Describe the problem
I would like to run some pages from a subdirectory that can change over time so it would be nice that the generated paths for the files start with "./" instead of "/". So the browser would start from the current location where he found the index.html
Edit: Another use case would be Electron which needs the dot in front of the files to work with the file protocol.
Describe the proposed solution
I would like that all the files that are part of the generated index.html to start with ./
so instead of
I would like to have
Alternatives considered
none
Importance
I cannot use sveltekit without it
Additional Information
If there is already a possibility that would be nice. I have played around with the paths property, but it seems that it does not allow what I would like to have. I have used the static adapter if that makes a difference.
Edit:
Just checked the vite docs. Vite would allow me to do exactly this and its also mentioned in the docs https://vitejs.dev/config/#base
The text was updated successfully, but these errors were encountered: