Created
March 18, 2013 11:02
-
-
Save stuartwakefield/5186452 to your computer and use it in GitHub Desktop.
Just the batch file I use to run Google Closure Compiler
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
:: 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