In my project, I am utilizing scss. There is a variable that determines which scss file needs to be imported based on its value.
I attempted the following approach:
$test: 1;
@if $test == 1 {
@import "./theme1.scss";
}
However, an error message is displayed:
'This at-rule is not allowed here.'
Is there a way to achieve this? If so, what would be the correct method?