Created
October 8, 2013 09:52
-
-
Save Salvodif/6882336 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/MsBuild/2003"> | |
<UsingTask TaskName="CssCompressorTask" AssemblyFile="..\..\..\..\..\Reference Assemblies\Yahoo.Yui.Compressor.Build.MsBuild.dll" /> | |
<UsingTask TaskName="JavaScriptCompressorTask" AssemblyFile="..\..\..\..\..\Reference Assemblies\Yahoo.Yui.Compressor.Build.MsBuild.dll" /> | |
<PropertyGroup> | |
<CssMinOutputFile>..\Assets\Styles\Stylesheet1.min.css</CssMinOutputFile> | |
<JavaScriptMinOutputFile>..\Assets\Scripts\Javascript1.min.js</JavaScriptMinOutputFile> | |
</PropertyGroup> | |
<Target Name="Minify"> | |
<!-- overwrite compiled files (bypass checkout issues) --> | |
<Exec Command="attrib -r $(CssMinOutputFile) /s /d " /> | |
<Exec Command="attrib -r $(JavaScriptMinOutputFile) /s /d " /> | |
<ItemGroup> | |
<!-- //////// 1 - CSS Core \\\\\\\\ --> | |
<CssFiles Include="css/Stylesheet1.css"/> | |
<!-- //////// 2 - Javascript Core \\\\\\\\ --> | |
<JavaScriptFiles Include="js/Javascript1.js"/> | |
</ItemGroup> | |
<!-- Main CSS --> | |
<CssCompressorTask | |
SourceFiles="@(CssFiles)" | |
DeleteSourceFiles="false" | |
OutputFile="$(CssMinOutputFile)" | |
CompressionType="Standard" | |
LoggingType="Info" | |
PreserveComments="false" | |
LineBreakPosition="-1" /> | |
<!-- Javascript --> | |
<JavaScriptCompressorTask | |
SourceFiles="@(JavaScriptFiles)" | |
DeleteSourceFiles="false" | |
OutputFile="$(JavaScriptMinOutputFile)" | |
CompressionType="Standard" | |
ObfuscateJavaScript="True" | |
PreserveAllSemicolons="False" | |
DisableOptimizations="No" | |
EncodingType="Default" | |
LineBreakPosition="-1" | |
LoggingType="Info" | |
ThreadCulture="en-gb" | |
IsEvalIgnored="false" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment