2010-07-20 53 views

回答

12

Rock Star Apps提供了一個鮮爲人知的插件。我剛剛寫了一篇關於它的博客文章:[已刪除,不再存在]。

經過一番谷歌搜索之後,我也發現了這個,但還沒有測試過它:https://github.com/greggian/Eclipse-Closure-Compiler

更新:Rock Star Apps網站不再有效。如果我今天嘗試這樣做,我肯定會下載closure compiler jar,編寫一個ant腳本來運行它(類似下面的代碼),然後爲它創建一個項目生成器。

<target name="rebuild"> 

    <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" 
      classpath="/opt/closure-compiler/compiler.jar"/> 

    <jscomp compilationLevel="simple" warning="quiet" 
     debug="false" output="js/all.closure.js"> 
     <sources dir="js"> 
      <file name="script1.js"/> 
      <file name="script2.js"/> 
      <file name="script3.js"/> 
      <file name="script4.js"/> 
      <file name="script5.js"/> 
      <file name="script6.js"/> 
     </sources> 
    </jscomp> 

</target> 
+0

對於被劫持的域名太糟糕了:( – 2012-03-21 20:09:19

+0

由於被劫持的域名無法找到Rock Star Apps,但你仍然可以手動下載並安裝zip。我只是按照這篇文章的說明操作:http: //blog.avirtualhome.com/rockstarapps-for-eclipse/ – firepol 2012-11-16 08:48:39

+0

你應該正確更新你的帖子以刪除不良網址,它現在主持一個網站試圖誘騙人們下載可疑的「FlashPlayer」更新... – uchuugaka 2017-04-01 22:50:55

1

podcast對如何關閉編譯器可能會融入IDE一些信息。但它在發佈之前已經發布。

1

您可能會感興趣於Closure構建工具http://plovr.com/。它動態地重新編譯JavaScript和Closure模板代碼。