Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 701
Rahul Avatar asked Nov 22 '12 05:11

Rahul


2 Answers

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

like image 97
Jeroen Avatar answered Sep 28 '22 09:09

Jeroen


You can take a look at bundling and minification if you are using ASP.NET 4.5.

like image 44
Sidharth Mudgal Avatar answered Sep 28 '22 10:09

Sidharth Mudgal