Environment files are back with Angular v15.1

cagkanmert

Cagkan Mert Oztas

Posted on January 23, 2023

Environment files are back with Angular v15.1

As we all know, when creating a new project in Angular v15, environment files were no longer included. To bring back the environment files, you had to create the files manually, edit the angular.json, and replace the files when switching to production mode.

The Angular v15.1 update comes with a great command for this. Now, you can automatically create your environment files and set the fileReplacement settings with the

ng generate environment [--project-name]
Enter fullscreen mode Exit fullscreen mode

command.


Check out my website for more…

💖 💪 🙅 🚩
cagkanmert
Cagkan Mert Oztas

Posted on January 23, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related