[Question] Do we have watch mode OR disable all check mode ?

29 views
Skip to first unread message

Lê Anh Hoàng Chương

unread,
Apr 6, 2022, 5:47:14 PM4/6/22
to Closure Compiler Discuss
Hi,

I've an issue with gg closure compiler, during development, for each change in code, I've to rebuild the whole project, and built time for medium project (about 40s+), which is unacceptable.

I'm rather new to gg closure compiler, do we have something like watch mode (only compile what change), or a mode that disable every check and just concatenate files together (I'm hoping to reduce it to less than 1s).

Thank you very much.

Bradford Smith

unread,
Apr 7, 2022, 11:45:12 AM4/7/22
to Closure Compiler Discuss
Hi there,

The optimizations closure-compiler does require it to see your entire application,
so at the moment we do not have any kind of incremental compile option.

However, for your edit-compile-test cycle, you could use the SIMPLE optimizations which are much less expensive to execute.
We have a WHITESPACE_ONLY mode, but that name is misleading if you're asking the compiler to output a different language level than the input,
so I don't really recommend using it.

I hope that helps you out,
Bradford

Reply all
Reply to author
Forward
0 new messages