The command ng build --prod its not working, it gave me the Error: Unknown argument: prod
I want to use it because I want to have the AOT to be optimized.
So right now I'm testing for first time the build option and I face this
Hi Arturo,
In the latest version of Angular, you no longer need to use the --prod flag with the ng build command. The production configurations, including Ahead-of-Time (AOT) compilation, are now included by default when you use the ng build command.
You can simply use the following command to build your Angular application for production:
ng build
This command will automatically apply the production optimizations, including AOT compilation, without the need for the --prod flag.
For more detailed information, you can refer to the Angular CLI documentation: https://angular.io/cli/build
Feel free to give it a try, and if you encounter any further issues or questions, don't hesitate to ask.
Thanks