Last active
October 17, 2018 01:41
-
-
Save HendrikRunte/b3e6226576b9dde1ca23 to your computer and use it in GitHub Desktop.
Sublime Build System for Google Closure Compiler with JS Source Maps
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.jar", | |
"--js", | |
"$file", | |
"--js_output_file", | |
"$file_path/$file_base_name-compiled.js", | |
"--compilation_level", | |
"WHITESPACE_ONLY", | |
"--create_source_map", | |
"$file_base_name-compiled.js.map", | |
"--source_map_location_mapping", | |
"${file_path}|.", | |
"--output_wrapper", | |
"%output%\r\n//# sourceMappingURL=./$file_base_name-compiled.js.map" | |
], | |
"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
Update: Now it uses --output_wrapper and --source_map_location_mapping to notify browsers where to find the source.