最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

asp.net - Automatically minify JavaScript files at the time of Publishing website in Visual Studio 2010 or 2012? - Stack Overflo

programmeradmin4浏览0评论

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
Add a ment  | 

2 Answers 2

Reset to default 6

Use 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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论