title: Using Jsmin build event in Visual Studio to combine files
body: <p>Im having trouble using JSmin to combine and minify my files on successful build: </p>
  
  <p>I think my syntax is correct but the output is empty</p>
  
  <pre><code>if $(ConfigurationName) == Debug goto :exit
  if $(ConfigurationName) == Alpha goto :combineLibsPluginsJs
  
  goto :exit
  
  REM This combines and minifies the Libraries and Plugins JavaScript
  :combineLibsPluginsJs
  "$(ProjectDir)\Tools\jsmin.exe" &lt; "$(ProjectDir)\Resources\Scripts\Libraries\SomeJs.js" | "$(ProjectDir)\Resources\Scripts\Libraries\OtherLibStuff.js" &gt; "$(ProjectDir)\Resources\min\LibrariesAndPlugins.js"
  
  :exit
  exit 0
  </code></pre>