Skip to content

fix: convert backslash paths to forward slashes for Tailwind v4 on Windows - #891

Merged
treoden merged 1 commit into
evershopcommerce:devfrom
Sigmabrogz:fix/windows-tailwind-paths
Mar 18, 2026
Merged

fix: convert backslash paths to forward slashes for Tailwind v4 on Windows#891
treoden merged 1 commit into
evershopcommerce:devfrom
Sigmabrogz:fix/windows-tailwind-paths

Conversation

@Sigmabrogz

Copy link
Copy Markdown

Summary

On Windows, Tailwind v4 @source directives break because path.resolve uses backslashes, resulting in missing utility classes (like rounded-xl, shadow-xs, ring-1) from the compiled CSS.

This commit converts the backslashes to forward slashes.

Problem

Closes #890

Solution

Wrapped the returned sources in getTailwindSources with sources.map((s) => s.replace(/\\\\/g, '/')) ensuring that Tailwind can correctly parse and apply the paths.

Testing

  • Code builds without errors
  • Tested the local configuration change

@treoden
treoden merged commit e8994c3 into evershopcommerce:dev Mar 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] [Windows] Admin CSS broken - Tailwind v4 @source directives use backslash paths on Windows

2 participants