I want to use this task in the VS2010 Web Application package deployment process to compress the javascript files:
<Target Name="CompressJS">
<ItemGroup>
<_JSFilesToCompress Include="*.js" />
</ItemGroup>
<Message Text="Compresing Javascript files $(_PackageTempDir)" Importance="high" />
<JSCompress Files="@(_JSFilesToCompress)" />
</Target>
I tried in some locations like OnAfterPipelinePreDeployCopyAllFilesToOneFolder
, but it won't work. In WDP I used to have it like:
<PropertyGroup>
<BuildDependsOn>
$(BuildDependsOn);
CompressJS;
</BuildDependsOn>
</PropertyGroup>