views:

103

answers:

2

I've been using Combres in my applications to compress, combine and minify my javascript and css at run time. This works extremely well and satisfies YSlow perfectly.

Now I'm rethinking the whole process for performance reasons, and I'm more so thinking about doing all of this at build time instead of run time.

I'm hoping that I can get a little advice on how to do this in Visual Studio 2010 without too much hassle. Is there an existing tool (similar to Combres) that can be attached to my Visual Studio build process?

Thanks in advance.

+4  A: 

The MSBuild Community Tasks Project has a JSCompress task. Check out the project here: http://msbuildtasks.tigris.org/

Here's another resource on how to actually implement this task: http://www.justise.com/2007/04/20/javascript-and-css-compression-in-msbuild/

mga911
Now I don't have a "build machine" per se, but rather just my development machine. Will these suggestions still work?
rockinthesixstring
PS, I've very new to custom build stuff... in fact, I've never done it.
rockinthesixstring
Yes, the build script is run every time you compile your project no matter the configuration. I was new to it too not to long ago. Its kind of a set it and forget it kind of thing. So I feel like I'm new to it if I ever have to make a change.
mga911
+1  A: 

Meet Chirpy

alt text

Chirpy Mashes, minifies, and validates your javascript, stylesheet, and dotless files.

Chirpy is chippy. Use Google Closure Tools or YUI Compressor for .Net to minify and mash all of your precious assets. It's easy, it's flexible, and it's automatic.

More info here or on the CodePlex site

Eduardo Molteni