I want to use the google closure compiler on the javascript source we're using. In development mode we tend to break functionality to lots of files but for production would like to have them combined into modules.  When calling the compiler I can...
I was wondering, since Clojure Compiler and UglifyJS not only optimize code for size but also for performance (although I think size is the main priority), would my node.js app run faster if it was minified ? I know it may depend from app, but I'...
Are there any projects that used node.js and closure-compiler (CC for short) together?  The official CC recommendation is to compile all code for an application together, but when I compile some simple node.js code which contains a require("./MyL...
I put this in an externs file:  /** @typedef {{english: string, spanish: string}} */ var SpanishNoun;   Then I have javascript:  /**  * @param {SpanishNoun} n   */ exp1.processData3 = function (n) {     console.log("pd3:", n.english, n.spanis...
I use Closure Compiler on my sources and recently decided to enable the most strict mode via --jscomp_warning=reportUnknownTypes. Alas, it triggered a lot of warnings inside the goog.base itself! I've fixed all the problems in my own code and now...
I have some HTML that contains a JSON string. In the on DOM ready callback, I have something like this:  MyObject = JSON.parse($('#TheJsonString').html());   Later in my code, I write something this:  var SomeVar = MyObject.MyProp1;   And the...
Here's what I'm looking for:   I want to use the wonderful features of SIMPLE mode minification while disabling just one specific feature (disable local function inline).      UPDATE: The answer is NO, it's not possible given my setup. Bu...
YUI Compressor was the consensus best tool for minimizing, but Closure seems like it could be better....
How can I test if an JavaScript object is an implementation of an interface using the Google Closure inheritance mechanism?    I could not find any hint of my.Animal in the objects created via new my.Dog() and object instanceof my.Animal didn't w...
I am having trouble getting this code structure to survive obfuscation with the Google Closure Compiler. Here's some sample code:  var MyModule = (function() {        function myModule()     {         // Constructor     }      function moduleFoo(...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.