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

__VITE_PUBLIC_ASSET__hash__ doesn't get replaced in the generated output #1850

Closed
equt opened this issue Nov 7, 2022 · 1 comment · Fixed by #1872 or #1926
Closed

__VITE_PUBLIC_ASSET__hash__ doesn't get replaced in the generated output #1850

equt opened this issue Nov 7, 2022 · 1 comment · Fixed by #1872 or #1926

Comments

@equt
Copy link
Contributor

equt commented Nov 7, 2022

I've created a minimal reproducible example here.

For the class bg-[url(/not-an-image.jpg)], it works correctly in the development mode, while outputs

.bg-\[url\(\/not-an-image\.jpg\)\] {
  --un-url: url(__VITE_PUBLIC_ASSET__032ad66c__);
  background-image: var(--un-url);
}

in the build mode.

Seems like the generated CSS didn't go through Vite's post-process but instead retrieved directly via the chunk hash? Just note it here for further debugging.

@equt
Copy link
Contributor Author

equt commented Nov 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant