OS environment variables with Angular 7 and Webpack
Are you storing sensitive configuration values inside environment.ts or environment.prod.ts files? Can all your developers see what is the secret key of third-party API? Even though you have externalized the configuration, how do you replace configuration values for production build? Do you execute an additional script to generate typescript definitions and then build the project? If you are having similar problems, look no further and have a look at how custom build process by using webpack plugin can help you to configure sensitive values through environment variables. *************************************************************************************************** Blog http://www.carbonrider.com/2019/03/11/os-environment-variables-with-angular-7-and-custom-webpack/ *************************************************************************************************** Source Code https://github.com/carbonrider/ng-environment-variable **************************************************************************************************** #Angular7 #Webpack #EnvironmentVariables
Download
0 formatsNo download links available.