- Install the Java SDK -- http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
- Download the Closure application -- http://dl.google.com/closure-compiler/compiler-latest.zip
- Copy the JAR to a convenient location (e.g. ~/compiler.jar)
- Create new build system in Sublime -- Tools > Build System > New Build System...
- Paste the following into the file: (compiles *.dev.js -> *.js)
{
"shell_cmd": "java -jar ~/compiler.jar --js_output_file ${file_base_name/.dev/''/g}.js ${file_name}",