diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Minifier/MinifierConfig.xml b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Minifier/MinifierConfig.xml new file mode 100644 index 0000000..8be4b9b --- /dev/null +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Minifier/MinifierConfig.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Minifier/Minify.bat b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Minifier/Minify.bat new file mode 100644 index 0000000..8675f9f --- /dev/null +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Minifier/Minify.bat @@ -0,0 +1,18 @@ +set "SolutionDir=%~1" +set "Directory=%~1..\..\Tools\Minifier\AjaxMinifier.exe" +echo "normalising.." +echo "1 - %Directory%" +echo "1a - %SolutionDir%" +call :normalise "%Directory%" + +start /wait "" "%Directory%" -xml "%SolutionDir%WindowsDataCenter\Minifier\MinifierConfig.xml" + +GOTO :EOF + +:normalise +SET "Directory=%~f1" +echo "2 - %Directory%" +EXIT /b + +:EOF +exit 0 \ No newline at end of file diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/WindowsDataCenter.csproj b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/WindowsDataCenter.csproj index 2816276..412f462 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/WindowsDataCenter.csproj +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/WindowsDataCenter.csproj @@ -174,6 +174,7 @@ + Always @@ -240,6 +241,7 @@ PreserveNewest + PreserveNewest @@ -295,6 +297,7 @@ + call "$(ProjectDir)Minifier\Minify.bat" "$(SolutionDir)"