Last active
December 17, 2015 11:19
-
-
Save firefly05/5601497 to your computer and use it in GitHub Desktop.
Save compressed Google Closure Compiler scripts as "filename" + min. Extended from https://github.com/kairyou/sublime-text2-pugin-Google-Closure-Compiler. API source https://sublime-text-unofficial-documentation.readthedocs.org/en/latest/reference/build_systems.html#build-system-variables
This file contains hidden or 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
{ | |
"cmd": [ | |
"java", | |
"-jar", "${packages}/Google Closure Compiler/bin/compiler.jar", | |
"--js", "$file", "--js_output_file", "$file_base_name-min.js", "--compilation_level", "WHITESPACE_ONLY" | |
], | |
"windows": { | |
"cmd": ["${packages}/Google Closure Compiler/bin/compiler.cmd", "$file"], | |
"file_regex": "^(.*?):([0-9]*):", | |
"selector": "source.js" | |
}, | |
"selector": "source.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment