Currently, I am developing an application using the Angular2 framework. One of my objectives is to have different variables in my sass files for development and production environments.
An example solution that I'm considering implementing is as follows:
@if $prod == true {
$background-color: #fff;
} @else {
$background-color: #333;
}
I am storing the value of the $prod variable in my typescript file. However, I am unsure how to pass this variable from the typescript file to the sass file. Any suggestions on how to achieve this?