Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add notes for google closure options to check out

  • Loading branch information...
commit c3ebda84d27055de8c2b508f2a4643120bdc7871 1 parent 817ab96
@marcuswestin authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 compiler.js
6 compiler.js
@@ -21,6 +21,12 @@ function compileJS(code, basePath) {
return indentJS('var require = {}\n' + compileJSModule(code, {}, basePath))
+// TODO: Look into
+// provide a closure to make all variables local: code = '(function(){'+code+'})()'
+// --compute_phase_ordering: Runs the compile job many times, then prints out the best phase ordering from this run
+// --define (--D, -D) VAL Override the value of a variable annotated @define. The format is <name>[=<val>], where <name> is the name of a @define variable and <val> is a boolean, number, or a single-quot ed string that contains no single quotes. If [=<val>] is omitted, the variable is marked true
+// --print_ast, --print_pass_graph, --print_tree
function compressJS(code, callback) {
var closureArgs = ['-jar', __dirname + '/google-closure.jar']

0 comments on commit c3ebda8

Please sign in to comment.
Something went wrong with that request. Please try again.