views:

38

answers:

3

I am using Microsoft Ajax Minifier to convert file1.js to file1.min.js. Now I would like to take file1.min.js and file2.min.js and merge them into files-merged.min.js.

I have found several open source msbuild projects but with no documentation on how to use them!

I am using Visual Studio 2010, is this something Ajax Minifier can do, if not do you have any tips on how to do it?

I want this to be an automated process, something done each time I build the solution.

A: 

You can find the answer here: http://www.codeproject.com/KB/aspnet/combineMinify.aspx

vucetica
+1  A: 

I did it by following this article:

http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/

I would prefer not to use the JSMin tool as I already have AJAX Minifier so I use JSMin just to merge the files. Can Minifier handle the merging of files?

KevinUK
A: 

C:\Progra~1\Microsoft\Micros~1\AjaxMin.exe js1.js js2.js -o jscombine.js -clobber