Is there any way in VS 2010 or 2012 to minify JavaScript files at the time of Publishing?

I want automatically minified js files. Any good example for compression?

Please note that I am not using MVC.

Edit
Report