We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
image-set
__VITE_ASSET__
1 parent 6a46cda commit f1a2635Copy full SHA for f1a2635
packages/vite/src/node/plugins/css.ts
@@ -2021,7 +2021,10 @@ function skipUrlReplacer(unquotedUrl: string) {
2021
isExternalUrl(unquotedUrl) ||
2022
isDataUrl(unquotedUrl) ||
2023
unquotedUrl[0] === '#' ||
2024
- functionCallRE.test(unquotedUrl)
+ functionCallRE.test(unquotedUrl) ||
2025
+ // skip if it is already a placeholder
2026
+ unquotedUrl.startsWith('__VITE_ASSET__') ||
2027
+ unquotedUrl.startsWith('__VITE_PUBLIC_ASSET__')
2028
)
2029
}
2030
async function doUrlReplace(
0 commit comments