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

CSS HMR not working with Vue + Pug + Tailwind CSS + Scss #10677

Closed
7 tasks done
SilentDepth opened this issue Oct 28, 2022 · 0 comments · Fixed by #10844
Closed
7 tasks done

CSS HMR not working with Vue + Pug + Tailwind CSS + Scss #10677

SilentDepth opened this issue Oct 28, 2022 · 0 comments · Fixed by #10844
Labels
feat: css feat: hmr p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@SilentDepth
Copy link

Describe the bug

Like #4588 but with Scss.

When using Vue + Pug + Tailwind CSS + Scss together, CSS HMR won't load styles generated by Tailwind CSS. New styles work after restarting Vite. No issue with vanilla HTML or CSS.

Reproduction

https://stackblitz.com/edit/vitejs-vite-7mqkx6?file=src/App.vue

Steps to reproduce

  1. Run the repro. There should be a red rectangle at the center of the page.
  2. At App.vue:3, replace bg-red-500 with other color (e.g. bg-blue-500).
  3. Check the render result. The color should change but it doesn't.
  4. Restart Vite, and the color now changes.

System Info

System:
  OS: Linux 5.0 undefined
  CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Memory: 0 Bytes / 0 Bytes
  Shell: 1.0 - /bin/jsh
Binaries:
  Node: 16.14.2 - /usr/local/bin/node
  Yarn: 1.22.19 - /usr/local/bin/yarn
  npm: 7.17.0 - /usr/local/bin/npm
npmPackages:
  @vitejs/plugin-vue: ^3.2.0 => 3.2.0 
  vite: ^3.2.0 => 3.2.0

Used Package Manager

npm

Logs

No response

Validations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: css feat: hmr p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
2 participants