Back to Browse

OS environment variables with Angular 7 and Webpack

5.1K views
Mar 4, 2019
19:52

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 formats

No download links available.

OS environment variables with Angular 7 and Webpack | NatokHD