Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Basti0208's avatar

Vite not compiling @include in SASS

Hi, I am currently facing the issue that an imported SASS file does not "render" the "@include" in SASS files.

My JS file:

import '../sass/style.scss';

In the style.scss:

@import "init";
@import "components/components";

The _init.scss includes the imports for the mixins and functions. The components contain @include statements for some things. Those includes render classes which are not in the output file which is compiled by Vite.

Has anyone faced the same issue? Am I doing anything wrong?

Best regards

0 likes
0 replies

Please or to participate in this conversation.