Trying to wrap my head around AngularJS and Grunt. In my GruntFile.js, I have set up two grunt tasks for development and production. In production, I am using uglification to combine multiple js files into one.
I am in need of some advice or tips on how to debug uglified javascript code in production if any issues arise. I have tried searching online and asking my colleagues for help, but so far, no luck. That's why I am turning to stack-overflow for assistance.
Is there a method to de-uglify scripts in production on-the-fly for debugging purposes, or perhaps a configuration that allows me to switch between uncompressed and compressed files for debugging and post-production purposes?
The responses provided here are truly helpful. Thank you.
If there are any additional methods or tips you can share, please feel free to do so.