Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript minifyer which can be integrated with a build of an ASP.NET application

Inspired by this answer.. Can you guys point me to something similar--something that can be integrated into a build-script or perhaps directly into Visual Studio?

like image 380
cllpse Avatar asked Sep 09 '09 20:09

cllpse


1 Answers

Visual Studio projects use MSBuild, so you can integrate an MSBuild task that uses whatever javascript minifier you'd like.

This has been blogged about pretty extensively so I won't bother trying to come up with the specifics here... but a quick google search yielded some good posts.

http://www.coderjournal.com/2008/05/how-to-create-a-yui-compressor-msbuild-task/

http://blog.mastykarz.nl/minify-your-javascript-and-save-the-kbs-for-later-imtech-javascript-minificator-free-tool/

like image 50
womp Avatar answered Oct 07 '22 12:10

womp