开发者

Publish site and compress javascript?

开发者 https://www.devze.com 2023-02-16 23:18 出处:网络
Is there a way, that when I Publish/Com开发者_开发问答pile my web application in Visual Studio 2010 that any javascript files in the application can be automatically compressed?Have you looked at the

Is there a way, that when I Publish/Com开发者_开发问答pile my web application in Visual Studio 2010 that any javascript files in the application can be automatically compressed?


Have you looked at the Web Deployment Tool Visual Studio 2010 - WDP or Publish for automated deployment?


I'll tell my experience and maybe it serves to you. When I build a web app, a consider use some content compressor, like SquishIt. It has behaviors like compress when in production and cache files. Hope it helps.


I wrote a nuget package to do this you might like to try ...

http://nuget.org/List/Packages/antix-nibbler

Uses YUI Compressor for .Net http://yuicompressor.codeplex.com/ for JS and CSS and PNGOUT.EXE http://advsys.net/ken/utils.htm for PNG compression

Doesn't combine the files into one like squishit does, but is easy to add to your app through nuget and needs no additional coding

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号