<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automatically minify and combine JavaScript in Visual Studio</title>
	<atom:link href="http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Fri, 12 Mar 2010 17:47:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lee Dumond</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-38168</link>
		<dc:creator>Lee Dumond</dc:creator>
		<pubDate>Mon, 01 Mar 2010 15:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-38168</guid>
		<description>Email, Dave addresses the dependency issue in the post by suggesting appending file names with numeric prefixes, such as 01, 05, 10, and so on. You definitely need to do that in most cases, since the combining order is important.</description>
		<content:encoded><![CDATA[<p>Email, Dave addresses the dependency issue in the post by suggesting appending file names with numeric prefixes, such as 01, 05, 10, and so on. You definitely need to do that in most cases, since the combining order is important.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil Birgersson</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-38167</link>
		<dc:creator>Emil Birgersson</dc:creator>
		<pubDate>Mon, 01 Mar 2010 15:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-38167</guid>
		<description>Great article, simple and neat solution! One question/comment about the order which the scripts are minified and combined. In your example above, you want the scripts to be evaluated in the following order: jquery.js, jquery-templates.js and finally default.js right? When you run the post-build-script event &quot;type *.debug.js&quot; &#124; ... isn&#039;t the first occurring file in the vs-project structure (alphabetical sort-order?) included first? I don&#039;t know if this matters or not(?) if yes, one would have to make sure the sort-order of the files in the Visual Studio project corresponds to the desired &quot;order of execution&quot;, eg by naming the files to be minified/combined like: a-jquery.js, b-jquery-templates.js, c-default.js?

Thanks!</description>
		<content:encoded><![CDATA[<p>Great article, simple and neat solution! One question/comment about the order which the scripts are minified and combined. In your example above, you want the scripts to be evaluated in the following order: jquery.js, jquery-templates.js and finally default.js right? When you run the post-build-script event &#8220;type *.debug.js&#8221; | &#8230; isn&#8217;t the first occurring file in the vs-project structure (alphabetical sort-order?) included first? I don&#8217;t know if this matters or not(?) if yes, one would have to make sure the sort-order of the files in the Visual Studio project corresponds to the desired &#8220;order of execution&#8221;, eg by naming the files to be minified/combined like: a-jquery.js, b-jquery-templates.js, c-default.js?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-38104</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sun, 21 Feb 2010 19:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-38104</guid>
		<description>It&#039;s actually even better than that, because the CDN serves it with a +1 year expires header.  The browser won&#039;t even check for a 304; it will immediately use the cached copy on disk.</description>
		<content:encoded><![CDATA[<p>It&#8217;s actually even better than that, because the CDN serves it with a +1 year expires header.  The browser won&#8217;t even check for a 304; it will immediately use the cached copy on disk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Dumond</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-38103</link>
		<dc:creator>Lee Dumond</dc:creator>
		<pubDate>Sun, 21 Feb 2010 19:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-38103</guid>
		<description>Thanks Dave, that&#039;s what I figured. There&#039;s probably at least a 50% or better chance that the CDN request will be a 304 anyway.</description>
		<content:encoded><![CDATA[<p>Thanks Dave, that&#8217;s what I figured. There&#8217;s probably at least a 50% or better chance that the CDN request will be a 304 anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-38100</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sun, 21 Feb 2010 18:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-38100</guid>
		<description>I think the jQuery CDN&#039;s benefits outweigh the drawback of the second request. Google serves it so much faster than any hosting I&#039;ve measured it against, the extra HTTP/DNS request is a wash for most users.  The very real potential of a new user hitting your site with it already cached makes the separate reference a good investment.</description>
		<content:encoded><![CDATA[<p>I think the jQuery CDN&#8217;s benefits outweigh the drawback of the second request. Google serves it so much faster than any hosting I&#8217;ve measured it against, the extra HTTP/DNS request is a wash for most users.  The very real potential of a new user hitting your site with it already cached makes the separate reference a good investment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Dumond</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-38082</link>
		<dc:creator>Lee Dumond</dc:creator>
		<pubDate>Sat, 20 Feb 2010 08:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-38082</guid>
		<description>Dave,

Just curious how you might reconcile using this technique along with the advice you offer about using the Google CDN:

http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/

Obviously, combining scripts requires that they all be hosted locally. So, is using a local copy of jQuery and minifying / combining it in a build task (along with your other scripts, of course) actually faster than using the CDN?

Or perhaps a combination of the two techniques? i.e. - using the CDN for jQuery, but minifying/combining everything else (custom JS, plugins, json2 parser, etc), then having two script includes (CDN plus bundled).

Interested to hear your take on this.</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Just curious how you might reconcile using this technique along with the advice you offer about using the Google CDN:</p>
<p><a href="http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/" rel="nofollow">http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/</a></p>
<p>Obviously, combining scripts requires that they all be hosted locally. So, is using a local copy of jQuery and minifying / combining it in a build task (along with your other scripts, of course) actually faster than using the CDN?</p>
<p>Or perhaps a combination of the two techniques? i.e. &#8211; using the CDN for jQuery, but minifying/combining everything else (custom JS, plugins, json2 parser, etc), then having two script includes (CDN plus bundled).</p>
<p>Interested to hear your take on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: niaher</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-37899</link>
		<dc:creator>niaher</dc:creator>
		<pubDate>Fri, 29 Jan 2010 11:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-37899</guid>
		<description>I have spent the last 2 days making a research about automating js/css minification/combining. The best solution I have found is by using this MSBuild tool: http://yuicompressor.codeplex.com/. This tool relies on a technique that is very similar to the one described in this article. The advantage is that everything is more automated, hence easier &amp; faster for us, developers.</description>
		<content:encoded><![CDATA[<p>I have spent the last 2 days making a research about automating js/css minification/combining. The best solution I have found is by using this MSBuild tool: <a href="http://yuicompressor.codeplex.com/" rel="nofollow">http://yuicompressor.codeplex.com/</a>. This tool relies on a technique that is very similar to the one described in this article. The advantage is that everything is more automated, hence easier &amp; faster for us, developers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to minimize and combine your JavaScript on Compile using Visual Studio &#171; Mitch Labrador&#39;s Tech Blog</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-37520</link>
		<dc:creator>How to minimize and combine your JavaScript on Compile using Visual Studio &#171; Mitch Labrador&#39;s Tech Blog</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-37520</guid>
		<description>[...] Thanks to Dave Ward for the original idea http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Thanks to Dave Ward for the original idea <a href="http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/" rel="nofollow">http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-10-28 - sashidhar.com</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36918</link>
		<dc:creator>links for 2009-10-28 - sashidhar.com</dc:creator>
		<pubDate>Wed, 28 Oct 2009 09:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36918</guid>
		<description>[...] Automatically minify and combine JavaScript in Visual Studio &#124; Encosia (tags: javascript compression visualstudio asp.net performance jquery) [...]</description>
		<content:encoded><![CDATA[<p>[...] Automatically minify and combine JavaScript in Visual Studio | Encosia (tags: javascript compression visualstudio asp.net performance jquery) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Foo</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36917</link>
		<dc:creator>Kelvin Foo</dc:creator>
		<pubDate>Wed, 28 Oct 2009 03:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36917</guid>
		<description>I wrote a simple batch file to compress multiple files with YUI Compressor.

All you need to do is call.. 

multicompress.bat output.min.js input1.js input2.js input3.js input4.js ... input9.js

of course you need to modify the batch file to suite your paths.


compress.bat
--
@echo off
&quot;C:\Program Files (x86)\Java\jre6\bin\java.exe&quot; -jar &quot;C:\Program Files\yuicompressor-2.4.2\build\yuicompressor-2.4.2.jar&quot; %1 %2 %3 %4 %5 %6 %7 %8 %9
--

multicompress.bat
--
@echo off
if not !%1==! del %1
if not !%2==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %2 &gt;&gt; %1
if not !%3==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %3 &gt;&gt; %1
if not !%4==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %4 &gt;&gt; %1
if not !%5==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %5 &gt;&gt; %1
if not !%6==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %6 &gt;&gt; %1
if not !%7==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %7 &gt;&gt; %1
if not !%8==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %8 &gt;&gt; %1
if not !%9==! call &quot;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&quot; %9 &gt;&gt; %1
--</description>
		<content:encoded><![CDATA[<p>I wrote a simple batch file to compress multiple files with YUI Compressor.</p>
<p>All you need to do is call.. </p>
<p>multicompress.bat output.min.js input1.js input2.js input3.js input4.js &#8230; input9.js</p>
<p>of course you need to modify the batch file to suite your paths.</p>
<p>compress.bat<br />
&#8211;<br />
@echo off<br />
&#8220;C:\Program Files (x86)\Java\jre6\bin\java.exe&#8221; -jar &#8220;C:\Program Files\yuicompressor-2.4.2\build\yuicompressor-2.4.2.jar&#8221; %1 %2 %3 %4 %5 %6 %7 %8 %9<br />
&#8211;</p>
<p>multicompress.bat<br />
&#8211;<br />
@echo off<br />
if not !%1==! del %1<br />
if not !%2==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %2 &gt;&gt; %1<br />
if not !%3==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %3 &gt;&gt; %1<br />
if not !%4==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %4 &gt;&gt; %1<br />
if not !%5==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %5 &gt;&gt; %1<br />
if not !%6==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %6 &gt;&gt; %1<br />
if not !%7==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %7 &gt;&gt; %1<br />
if not !%8==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %8 &gt;&gt; %1<br />
if not !%9==! call &#8220;C:\Program Files\yuicompressor-2.4.2\build\compress.bat&#8221; %9 &gt;&gt; %1<br />
&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36852</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 22 Oct 2009 13:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36852</guid>
		<description>I don&#039;t know of an easy way to automate that.

If possible, you should refactor those inline scripts out into an include file.  The caching gain from that will be greater than the gain from minification (and then you can easily minify it too).</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know of an easy way to automate that.</p>
<p>If possible, you should refactor those inline scripts out into an include file.  The caching gain from that will be greater than the gain from minification (and then you can easily minify it too).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Performance: Automatically minify java script files with Visual Studio. - Yevgeni Frolov</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36830</link>
		<dc:creator>Performance: Automatically minify java script files with Visual Studio. - Yevgeni Frolov</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36830</guid>
		<description>[...] So I’ve found that grate article by Dave Ward that describes a way to integrate automatic java script file minifying into development lifecycle&#160; “Automatically minify and combine JavaScript in Visual Studio”. [...]</description>
		<content:encoded><![CDATA[<p>[...] So I’ve found that grate article by Dave Ward that describes a way to integrate automatic java script file minifying into development lifecycle&#160; “Automatically minify and combine JavaScript in Visual Studio”. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Woodward</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36828</link>
		<dc:creator>Chris Woodward</dc:creator>
		<pubDate>Wed, 21 Oct 2009 03:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36828</guid>
		<description>Important addendum to my last post:

You&#039;ll need to use &#039;echo&#039; instead of &#039;type&#039; in the build event to avoid a non existent pipe error.</description>
		<content:encoded><![CDATA[<p>Important addendum to my last post:</p>
<p>You&#8217;ll need to use &#8216;echo&#8217; instead of &#8216;type&#8217; in the build event to avoid a non existent pipe error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Woodward</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36827</link>
		<dc:creator>Chris Woodward</dc:creator>
		<pubDate>Wed, 21 Oct 2009 03:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36827</guid>
		<description>If you want to use YuiCompressor in the same way that JSMin is used here I wrote an exe to do it.

&lt;pre lang=&quot;csharp&quot;&gt;using System;
using System.IO;
using Yahoo.Yui.Compressor;

namespace YuiCompress
{
 class Program
 {
  static void Main(string[] args)
  {
   string path = Console.In.ReadLine().Trim();
   if (!path.EndsWith(&quot;.js&quot;) &amp;&amp; !path.EndsWith(&quot;.css&quot;))
    return;

   string folder = path.Substring(0, path.LastIndexOf(&#039;\\&#039;));
   string files = path.Substring(path.LastIndexOf(&#039;\\&#039;) + 1);

   foreach (var file in Directory.GetFiles(folder, files))
   {
    using (StreamReader input = File.OpenText(file))
    {
     string code = input.ReadToEnd();
     if (!string.IsNullOrEmpty(code))
     {
      if (file.EndsWith(&quot;.js&quot;))
       Console.Out.Write(JavaScriptCompressor.Compress(code, false));
      else
       Console.Out.Write(CssCompressor.Compress(code));
     }
    }
   }
  }
 }
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>If you want to use YuiCompressor in the same way that JSMin is used here I wrote an exe to do it.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">Yahoo.Yui.Compressor</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> YuiCompress
<span style="color: #000000;">&#123;</span>
 <span style="color: #FF0000;">class</span> Program
 <span style="color: #000000;">&#123;</span>
  <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #FF0000;">string</span> path <span style="color: #008000;">=</span> Console.<span style="color: #0600FF;">In</span>.<span style="color: #0000FF;">ReadLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Trim</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #008000;">!</span>path.<span style="color: #0000FF;">EndsWith</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;.js&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> <span style="color: #008000;">!</span>path.<span style="color: #0000FF;">EndsWith</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;.css&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    return<span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #FF0000;">string</span> folder <span style="color: #008000;">=</span> path.<span style="color: #0000FF;">Substring</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span>, path.<span style="color: #0000FF;">LastIndexOf</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">'<span style="color: #008080; font-weight: bold;">\\</span>'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #FF0000;">string</span> files <span style="color: #008000;">=</span> path.<span style="color: #0000FF;">Substring</span><span style="color: #000000;">&#40;</span>path.<span style="color: #0000FF;">LastIndexOf</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">'<span style="color: #008080; font-weight: bold;">\\</span>'</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">+</span> <span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>var file <span style="color: #0600FF;">in</span> Directory.<span style="color: #0000FF;">GetFiles</span><span style="color: #000000;">&#40;</span>folder, files<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>StreamReader input <span style="color: #008000;">=</span> File.<span style="color: #0000FF;">OpenText</span><span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
     <span style="color: #FF0000;">string</span> code <span style="color: #008000;">=</span> input.<span style="color: #0000FF;">ReadToEnd</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #008000;">!</span><span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">IsNullOrEmpty</span><span style="color: #000000;">&#40;</span>code<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
     <span style="color: #000000;">&#123;</span>
      <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>file.<span style="color: #0000FF;">EndsWith</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;.js&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
       Console.<span style="color: #0600FF;">Out</span>.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>JavaScriptCompressor.<span style="color: #0000FF;">Compress</span><span style="color: #000000;">&#40;</span>code, <span style="color: #0600FF;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      <span style="color: #0600FF;">else</span>
       Console.<span style="color: #0600FF;">Out</span>.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>CssCompressor.<span style="color: #0000FF;">Compress</span><span style="color: #000000;">&#40;</span>code<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
  <span style="color: #000000;">&#125;</span>
 <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: LG</title>
		<link>http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/#comment-36794</link>
		<dc:creator>LG</dc:creator>
		<pubDate>Sun, 18 Oct 2009 13:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=868#comment-36794</guid>
		<description>Dave,
Can you please tell me, how can we do the same for .aspx files which has js functions included in it</description>
		<content:encoded><![CDATA[<p>Dave,<br />
Can you please tell me, how can we do the same for .aspx files which has js functions included in it</p>
]]></content:encoded>
	</item>
</channel>
</rss>
