In my project, I need to inject a global variable to be used across the app, from an environment file, into SCSS files.
Following an advice such as this, isn't possible for me since the app contains ~50 different possible configs, so maintaining so many projects in angular.json
is just not feasible.
In our current setup, using webpack, we used the data
option for sass-loader
to inject what ever variable imported from the environment file.
This is currently impossible with angular-cli - making the migration impossible.
How can we achieve this?