Forked from insin/Google Closure.sublime-build (Linux)
Last active
December 17, 2015 07:09
-
-
Save boaf/5570557 to your computer and use it in GitHub Desktop.
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
This build uses Google's Closure Compiler for compilation to a | |
WHITESPACE_ONLY-compressed *.min.js file. Additionally, you can use F4/Shift+F4 | |
to cycle through any syntax errors the compiler flags up. | |
To add the build: | |
1. Create a new file in Packages/Google Closure/Google Closure.sublime-build | |
with contents as per this Gist. | |
2. Download the Closure compiler.jar from http://code.google.com/closure/compiler/ | |
and place it in Packages/Google Closure. |
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
Show hidden characters
{ | |
"cmd": ["java", "-jar", "${packages}/Google Closure/compiler.jar", "--js", | |
"$file", "--js_output_file", | |
"${file_path}/${file_base_name}.min.js", "--compilation_level", | |
"WHITESPACE_ONLY"], | |
"file_regex": "^(.*):([0-9]+):() ERROR - (.*)", | |
"selector": "source.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment