タグ

Closureとjsに関するimai_0707のブックマーク (1)

  • Yuyak.com » GoogleのClosure CompilerでJavaScriptを圧縮

    Googleから出ているJavaScript圧縮&最適化ツールのClosure Compilerが思いのほか簡単に使えた。 まぁ、基は関連リンク[2]のClosure Compiler Service にアクセスして使えばいいのですが、ファイルサイズが大きい場合はエラーが出るようです。それに、ローカルでやった方がスピーディーにできるというのも魅力かも。 そんなわけで、ローカルでの使い方 Getting Started with the Closure Compiler Application – Closure Compiler – Google Code にすべてが書いてあるのですが、 1.  compiler.jarをダウンロード 2. java -jar compiler.jar –js hello.js –js_output_file hello-compiled.js を実行す

  • 1