Compressor Task

Jul 21, 2011 at 1:59 PM

Hello,

anybody knows how to add a condition to a compressor task?

I need to enable the compressor task only en release mode.

Something like:

<ItemGroup>
      <cssFiles Include="$(OutputPath)\css\general.css">
      </cssFiles>
      <cssFiles Include="$(OutputPath)\css\general-modif.css">
      </cssFiles>
      <cssFiles Include="$(OutputPath)\css\popup-tots.css">
      </cssFiles>
      <cssFiles Include="$(OutputPath)\css\site.css">
      </cssFiles>
      <cssFiles Include="$(OutputPath)\css\ui.jqgrid.css">
      </cssFiles>
      <cssFiles Include="$(OutputPath)\css\ui.jqgrid-modif.css">
      </cssFiles>
</ItemGroup>
<CompressorTask Condition="'$(Configuration)' == 'Release'" CssFiles="@(cssFiles)" CssOutputFile="$(OutputPath)\css\combined.css" CssCompressionType="YuiStockCompression" />

Thank you very much,

Xavier

Coordinator
Sep 5, 2011 at 1:34 AM

Can you post a screen shot of solution's CONFIGURATION window, please?