Skip to content

Comments

fix(vite): resolve tailwind hmr for mdx files#365

Open
srivtx wants to merge 1 commit intowevm:mainfrom
srivtx:main
Open

fix(vite): resolve tailwind hmr for mdx files#365
srivtx wants to merge 1 commit intowevm:mainfrom
srivtx:main

Conversation

@srivtx
Copy link

@srivtx srivtx commented Dec 29, 2025

Description

Fixes #364

Resolves an issue where Tailwind CSS styles didn't update in .mdx files without a manual refresh.

Changes

  • Fixed Root & Scanning: Pointed Vite to the correct project root so Tailwind detects changes in user files.
  • Fixed HMR: Added a plugin that automatically updates CSS when .mdx files change, giving instant feedback without reloading the page.
  • Fixed Permissions: Allowed Vite to serve internal library files to prevent errors.

Verification

  • Verified that changing Tailwind classes in MDX now updates instantly.
  • Confirmed no page reload is needed.
  • Added changeset.

@vercel
Copy link

vercel bot commented Dec 29, 2025

Someone is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

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.

Tailwind issue

1 participant