Use Ant and Closure Compiler to compress every JavaScript file in a project if you have lots of files
In a previous post, I set out how to use an Ant script to run every JavaScript file in a project through the Closure compiler.
For the most part, this has been working fine for me. Then I ran it against a project with some 50-odd JavaScript files and it started to throw PermGen OutOfMemoryError errors. So, it needed…