Automatically minify JavaScript files at the time of Publishing website in Visual Studio 2010 or 2012?

Rahul picture Rahul · Nov 22, 2012 · Viewed 15k times · Source

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.

Answer

Jeroen picture Jeroen · Nov 22, 2012

Use MVC 4. It bundles multiple scripts and minifies them.