-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
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-tags
With <style> tags, without Tailwind (fast): https://github.com/hivokas/laravel-vue-vite-tailwind-slow/tree/without-tailwind
Without <style> tags, with Tailwind (fast): https://github.com/hivokas/laravel-vue-vite-tailwind-slow/tree/without-style-tags
How to run the reproduction:
- Clone the repo
- Run
npm install - Run
composer install - Open
laravel-vue-vite-tailwind-slow.testif you're using Valet - Run
npm run devto start the Vite dev server - Switch between
with-style-tags,without-tailwindandwithout-style-tagsto see the difference
Describe your issue
HMR works really slow when there are a lot of Vue components with <style>.
Here is the detailed demo: