Skip to content

Instantly share code, notes, and snippets.

@jervert
Forked from stuartwakefield/compiler.bat
Created October 6, 2013 20:55
Show Gist options
  • Save jervert/6858989 to your computer and use it in GitHub Desktop.
Save jervert/6858989 to your computer and use it in GitHub Desktop.
:: 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