Version: 5.1.2
closure-compile: Compile and compress JavaScript source with the Google Closure Compiler
This library exposes the Google Closure compiler to Racket.
The module requires runtime access to Java; the value of (find-executable-path "java") should point to a valid Java executable.
(closure-compile code [compilation-level]) → string? | ||||||||||||
code : string? | ||||||||||||
|
closure-compile takes the given code and passes it to the Closure compiler. It should return a minified version of code. compilation-level adjusts the optimization that the Closure compiler will perform.
If anything bad happens, it will raise an exn:fail and hold the error message in the exception’s exn-message.
Examples: | ||||||||||||||||||||||||||
|