Skip to content
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: do not overwrite asset url when it starts with double slash #2143

Merged
merged 2 commits into from
Feb 24, 2021
Merged

fix: do not overwrite asset url when it starts with double slash #2143

merged 2 commits into from
Feb 24, 2021

Conversation

CHOYSEN
Copy link
Contributor

@CHOYSEN CHOYSEN commented Feb 21, 2021

Fix #2114

@CHOYSEN CHOYSEN changed the title fix: do not overwrite script url when it starts with double slash fix: do not overwrite asset url when it starts with double slash Feb 21, 2021
@underfin
Copy link
Member

It also affect for build. Can you update your code to fix it?

@CHOYSEN
Copy link
Contributor Author

CHOYSEN commented Feb 23, 2021

It also affect for build. Can you update your code to fix it?

Seems Vite will check this file is exist in public dir or not, so it doesn't affect for build, it also works as expect in my manual test.

if (url && checkPublicFile(url, config)) {

@yyx990803 yyx990803 merged commit 7a1b5c6 into vitejs:main Feb 24, 2021
@CHOYSEN CHOYSEN deleted the patch_11 branch February 24, 2021 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants