-
Notifications
You must be signed in to change notification settings - Fork 191
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
fix(hmr): fix tailwindcss
hmr does not work (vite)
#755
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 221dcbc The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
tailwindcss
hmr does not work (vite-plugin)tailwindcss
hmr does not work (vite)
tailwindcss
hmr does not work (vite)tailwindcss
hmr does not work (vite)
It'd be so amazing to have this work! |
+1 |
any updates here? this has been my blocker with vue :/ |
tailwindcss
hmr does not work (vite)tailwindcss
hmr does not work (vite)
Is it possible to have this merged? It is a blocker for my project as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks amazing. I'd like to merge this after a few tweaks:
Tasks before merging
- Add e2e test
- Fix tests
This would be good! :-) |
+1 |
FIxed: Fix the problem that tailwindcss
jit
did not trigger thehmr
updateTodo: Fix the problem that the
index.css?inline
syntax does not work inhmr
Fix: #600 #671 #609 #512
Tests to be added...
import index.css?inline
still cannot implement HMR incontentScripts
, because it is static data, but manually refreshing the page can already work, Do you have any good ideas?At present(After merged this PR), there is only one compromise way to fully realize HMR:
createShadowRoot.ts
content.tsx
If it is a
development
environment, add the out style in head to shadow domIf it is a
production
environment, write css string to shadow dom