开发者

speeding up google closure compiler jar

开发者 https://www.devze.com 2023-03-17 22:21 出处:网络
The Google Closure Compiler for JavaScript is quite speedy when I use it online; however, it takes up to 10 seconds to run from the commandline (java -client -jar path/to/closure.jar options...).

The Google Closure Compiler for JavaScript is quite speedy when I use it online; however, it takes up to 10 seconds to run from the commandline (java -client -jar path/to/closure.jar options...).

Is there any way to reduce this to the same times as the web app (3 seconds max)? I cannot use the web app because my company requires all builds be able to work without an internet connection.

I suspect this is mostly startup ti开发者_JS百科me (why I added the -client tag), but I don't know.


I would suggest looking into Plovr[1]. You need only start it once, after which point it will monitor changes in your dependencies and recompile as needed. You can use the same config on your build server to create the output without starting it as a service.

  1. http://www.plovr.com/
0

精彩评论

暂无评论...
验证码 换一张
取 消