Skip to content

SCSS changes in imported file (in another SCSS file) aren't applied on hot reload (Vite) #18307

Answered by wongjn
Novivy asked this question in Help
Discussion options

You must be logged in to vote

As per the documentation:

Tailwind CSS v4.0 is a full-featured CSS build tool designed for a specific workflow, and is not designed to be used with CSS preprocessors like Sass, Less, or Stylus.

Think of Tailwind CSS itself as your preprocessor — you shouldn't use Tailwind with Sass for the same reason you wouldn't use Sass with Stylus.

If you must use Sass in your project, consider separating it out into a different CSS entry point, separate from Tailwind: https://stackblitz.com/edit/vitejs-vite-ghos6rtz

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Novivy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #18306 on June 13, 2025 07:48.