2 ms·
Closure Compiler was indeed written to target Google's very specific rules on how to structure code and name stuff. However, Closure still does a better job tha
by lobster_johnson 10y ago
Closure Compiler was indeed written to target Google's very specific rules on how to structure code and name stuff. However, Closure still does a better job than Uglify and other minifiers even if you don't do this. Its basic set of optimizations are generic and won't break code (unless you enable the advanced mode, which has been historically iffy).
The only downside is that it's slow. Like really slow. It takes about a minute to minify our app.
Edit: Looks like Uglify has gotten better lately. I'll submit a separate top-level comment.