google-closure-compiler
Google closure compiler w/ ternaries: ERROR - inconsistent return type
So I have a helper namespace which I store helpful additions when developing JS. Now I plan to document them better and strengthen my JS with JsDoc and the help of Google Closure compiler. I got the l[详细]
2023-03-18 22:15 分类:问答What are the standard externs provided by the command line Google Closure, and how do I get them through the Java interface?
I\'m currently using this code: com.google.javascript.jscomp.Compiler.setLoggingLevel(Level.OFF); com.google.javascript.jscomp.Compiler compiler = new com.google.javascript.jscomp.Compiler();[详细]
2023-03-18 07:28 分类:问答speeding up google closure compiler jar
The Google Closure Compiler for JavaScript is quite speedy when I use it online; however, it takes up to 10 seconds to run from the commandline (java -client -jar path/to/closure.jar options...).[详细]
2023-03-17 22:21 分类:问答google closure compiler's advanced optimization isn't optimizing some variables
I\'m running into an issue with the Google Closure Javascript compiler with advanced optimization. As the documentation suggests, to preserve exported Javascript I do something like this:[详细]
2023-03-17 18:16 分类:问答3rd Party JSON with Google Closure in Advanced Mode?
I\'m having trouble with the advanced optimization of the closure compiler trying to rename my JSON properties.I am using the rich autocomplete control and feeding it with JSON returned from my action[详细]
2023-03-17 10:39 分类:问答How to preserve jQuery.ajax.data object when using closure compiler?
When using closure compiler with ADVANCED_OPTIMIZATIONS, jQuery.ajax.data object is changed: $.ajax({ type: \"POST\",[详细]
2023-03-13 09:21 分类:问答How to integrate Google Closure Compiler as a build step in Visual Studio 2010
Is there any reference or tutorial for this? And if it\'s possible, have the jav开发者_如何学JAVAascript file being built only if the file is modified. You might be able to try this:[详细]
2023-03-11 17:00 分类:问答How to preserve global variables in javascript when using Closure compiler with advanced optimization?
I have my own Javascript library, which I want to minify by using Google closure compiler with Advanced optimization. By looking at the docs I see how to declare functions which are used outside of th[详细]
2023-03-09 10:00 分类:问答How to @suppress multiple warnings with Closure Compiler?
It\'s possible to suppress warnings on a per-file basis with Google\'s Closure Compiler via the @suppress annotation.However, it doesn\'t seem to be possible to suppress multiple warnings at the same[详细]
2023-03-09 00:37 分类:问答Use closure compiler to remove unused parts of jQuery
Is it possible to use the closure compiler to remove unused parts of jQuery? I have a script which only uses jQuery\'s networking (json) functions, and I\'d like a minified script which removes every[详细]
2023-03-05 11:56 分类:问答