closure-demo icon indicating copy to clipboard operation
closure-demo copied to clipboard

update code/doc to show closure-compiler js use instead of java dependent build process

Open nirajkrz opened this issue 5 years ago • 3 comments

Since we have different options available in google-closure-compiler (Java vs JS versions). Can we have an example to demonstrate it's use with Angular6+ versions using closure-compiler-js for UI projects? It would be helpful to showcase the integration and use of google-closure-compiler with the angular's (CLI vs 7 and above) build process and avoid the JAR dependency.

nirajkrz avatar May 02 '19 18:05 nirajkrz

I have found the JS version to not be a realistic alternative. It runs out of memory and crashes for even just medium sized projects.

More context here: https://github.com/google/closure-compiler-js/issues/23

thelgevold avatar May 02 '19 21:05 thelgevold

Thanks for the reply @thelgevold. So that means we should be using the Java version only. Is there a workaround available to get the JS one working?

nirajkrz avatar May 06 '19 13:05 nirajkrz

I am not aware of a workaround that makes it possible to rely on the JS version. The main issue is that it doesn't scale. I would stick to the Java version.

thelgevold avatar May 06 '19 23:05 thelgevold