Compressor Task

Jul 21, 2011 at 2:59 PM


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

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

Something like:

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

Thank you very much,


Sep 5, 2011 at 2:34 AM

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