tailwindcss
tailwindcss copied to clipboard
[v4] importing tailwindcss/utilities breaks hmr
Im using:
- tailwind v4.0.0-alpha.17 ( @tailwindcss/postcss )
- nuxt v3.12.3
- sass v1.77.8
The following code works perfectly:
@import "../theme/_index.scss" layer(theme);
@import "tailwindcss/preflight" layer(base);
@import "../base/_index.scss" layer(base);
@import "../plugins/postcss/_index.scss" layer(base);
@import "../plugins/formkit/_index.scss" layer(components);
But whenever i try and import the utilities from tailwind like so:
@import "../theme/_index.scss" layer(theme);
@import "tailwindcss/preflight" layer(base);
@import "../base/_index.scss" layer(base);
@import "../plugins/postcss/_index.scss" layer(base);
@import "../plugins/formkit/_index.scss" layer(components);
@import "tailwindcss/utilities" layer(utilities);
The HMR stops working, it does still say that the HMR got updated but it wont actually apply the changes to the front-end. Whenever i save my main scss file, the changes actually get applied.