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
When using the ?url import, there seems to be a mismatch between the generated assets, resulting in two identical css files (with different hashes), with the mismatched included at the top of the <head/>. It's a vite-plugin-stylex-dev for StyleX css solution.
For some reason I cannot reproduce bug in the sandbox.
This happens occasionally between builds, so maybe it's due to some internal Remix caching. When this mismatch occurs, this line outputs:
✓ 1 resource moved from Remix server build to client resources.
build/client/assets/index-CiOyfy0p.css
I'm not sure if these issues are related but I'm experiencing this too with Tailwind. I only have one CSS file in my Remix project, that being root.css. The build is outputting two CSS files, though slightly different in size.
Reproduction
When using the
?url
import, there seems to be a mismatch between the generated assets, resulting in two identical css files (with different hashes), with the mismatched included at the top of the<head/>
. It's avite-plugin-stylex-dev
for StyleX css solution.For some reason I cannot reproduce bug in the sandbox.
This happens occasionally between builds, so maybe it's due to some internal Remix caching. When this mismatch occurs, this line outputs:
Logs:
remix/packages/remix-dev/vite/plugin.ts
Lines 1441 to 1454 in 2e65318
Original issue:
nonzzz/vite-plugin-stylex#25
System Info
Used Package Manager
pnpm
Expected Behavior
pnpm build
should result in a single css fileActual Behavior
pnpm build
results in identical duplicate of the original css file and includes it in the output htmlThe text was updated successfully, but these errors were encountered: