목차

Google Javascript Closure Compiler

역할

문제점

설치 사용

Ant 연동

<?xml version="1.0"?>
<project basedir="." default="compile">
 
  <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
           classpath="../build/compiler.jar"/>
 
  <target name="compile">
 
    <jscomp compilationLevel="simple" warning="verbose" 
            debug="false" output="output/file.js">
 
      <externs dir="${basedir}/src">
        <file name="extern.js"/>
      </externs>
 
      <sources dir="${basedir}/src">
        <file name="simple1.js"/>
        <file name="simple2.js"/>
      </sources>
 
      <sources dir="${basedir}/other">
        <file name="simple3.js"/>
      </sources>
 
    </jscomp>
 
  </target>
 
</project>

Closure Compiler API