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 pression?
Please note that I am not using MVC.
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 pression?
Please note that I am not using MVC.
Share Improve this question edited Nov 29, 2018 at 2:08 Md Rahatur Rahman 3,2443 gold badges37 silver badges50 bronze badges asked Nov 22, 2012 at 5:50 RahulRahul 6011 gold badge8 silver badges21 bronze badges 1- 1 Right now we run minification scripts in MSBuild file in an "AfterBuild" target. But it non-ideal and really slows down build time (especially for unit tests). – craastad Commented Mar 8, 2013 at 11:52
2 Answers
Reset to default 6Use MVC 4. It bundles multiple scripts and minifies them.
You can take a look at bundling and minification if you are using ASP.NET 4.5.