2
我有一些代码,我想通过Google Closure编译器运行。在Google Closure Compiler中保留已缩小的代码片段
然而问题是,除了我自己的代码之外,还有一段已经缩小了的代码,我无法获取原始代码。
因此,通过编译器运行时,缩小的代码会被再次编译,从而完全搞砸了。
任何人都知道注释或其他技术来阻止Google Closure Compiler编译代码的某些部分?
// my code
function someFunction() {
// some code blabla
}
someFunction();
// already minified code; should be preserved in its state
!function(){window.a='abc'; /* ... */ }();
PS:我知道,一个解决办法是缩小的代码移到另一个文件,但我想知道,如果有另一种解决方案。
排除从统计部是我会知道这样做的唯一途径。 – 2013-04-11 11:35:07