I am trying to serve the app via configuration for prod in Angular 6 using below command.
ng serve --configuration=prod
But it gives me below error :
Configuration 'prod' could not be found in project 'platform-ui'.
Error: Configuration 'prod' could not be found in project 'platform-ui'.
Solution :
If you look at your angular.json file, you’ll see that you have finer control over settings for each configuration.
Now look for serve tag in json
and add configuration for your custom server like this :
now try to run below command again
ng serve --configuration=prod
201 total views, no views today