Skip to content

Instantly share code, notes, and snippets.

@stuartwakefield
Created March 18, 2013 11:02
Show Gist options
  • Save stuartwakefield/5186452 to your computer and use it in GitHub Desktop.
Save stuartwakefield/5186452 to your computer and use it in GitHub Desktop.
Just the batch file I use to run Google Closure Compiler
:: Installation
:: ------------
::
:: 1. Add this to the same directory as the Google Closure Compiler jar
:: 2. Add that directory to your Windows PATH environment variable
::
:: Then simply run the compiler, for example:
::
:: compiler --js input.js --js_output_file output.min.js
::
@echo off
:: The directory of this batch file
set DIRPATH=%~dp0
:: Java must also be on the PATH
call java -jar %DIRPATH%compiler.jar %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment