Answer the question
In order to leave comments, you need to log in
Using Google Closure Compiler in ADVANCED_MODE?
Hello. I want to use Google Closure Compiler to minify my JS in ADVANCED_MODE. As you know, this is a rather aggressive method of compression after which, if the code is "wrongly" organized and public properties are not exported, the code does not work at all.
Suppose I “correctly” built the class hierarchy, exported the methods that were needed outside of either, and even “quoted” all the names of the properties of simple
objects
:var settings = {prop: 1, prop: 2};
var settings = {"prop": 1, "prop": 2};
Lib["util"]["storage"]["clear"]();
Answer the question
In order to leave comments, you need to log in
I use the Simple mode, for the most frequent combat cases, the very thing.
Not only does Advanced require such structures, but even somewhere it can suddenly break something
The Google Closure Compiler is made for the Google Closure Library, which means that in order to use the compressor effectively, you must follow the rules and recommendations used in the reference lib.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question