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
I am having the same issue on a large project:
The HMR is reloading ALL vue components that are using the @apply directive in the style section, instead of just loading the one that has changed.
My very basic reproduction repo is this where you can easily see that editing comp1.vue will trigger the hmr for comp2.vue which is totally unrelated.
I have described a performance regression we have experienced in #7454 (discussion). The change that caused this for us was introduced in 3.0.10 (PR #6580). I could reproduce your problem with the reproduction repo of @gufoe. When downgrading tailwindcss to 3.0.9 there, it seemed to work as expected.
What version of Tailwind CSS are you using?
3.0.22
What build tool (or framework if it abstracts the build tool) are you using?
vite 2.8.2
What version of Node.js are you using?
16.13.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
With
<style>
tags (slow): https://github.com/hivokas/laravel-vue-vite-tailwind-slow/tree/with-style-tagsWith
<style>
tags, without Tailwind (fast): https://github.com/hivokas/laravel-vue-vite-tailwind-slow/tree/without-tailwindWithout
<style>
tags, with Tailwind (fast): https://github.com/hivokas/laravel-vue-vite-tailwind-slow/tree/without-style-tagsHow to run the reproduction:
npm install
composer install
laravel-vue-vite-tailwind-slow.test
if you're using Valetnpm run dev
to start the Vite dev serverwith-style-tags
,without-tailwind
andwithout-style-tags
to see the differenceDescribe your issue
HMR works really slow when there are a lot of Vue components with
<style>
.Here is the detailed demo:
TailwindIssue.mp4
The text was updated successfully, but these errors were encountered: