I am using scss in a project. I have a variable which depending on it's value I want to determine which scss file is imported.
So I'm trying this:
$test: 1;
@if $test == 1 {
@import "./theme1.scss";
}
Error I'm getting is:
'This at-rule is not allowed here.'
Can this be done? If so how?