Debugging Angular Application in Production mode
Too Long; Didn't Read
Some bugs appear in a production environment only with no obvious way to reproduce them in development no matter how hard you try. To solve these kinds of issues we have to debug the output of our production code. The --watch flag, watches our code for changes then runs build process every time our code changes. The --source-map is used to map our minified code back to its original state so we can debug and read that code. We can add/remove breakpoints apply changes to our code and rebuild just like we normally do in day-to-day development activity.