If you’re using Angular 6, the new flag is — configuration=production

Another possible mistake is that you imported environment from “environment.prod” in your code, rather than just “environment”

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com