I'm trying to get the Google Closure compiler to work to compile javascript code that uses jquery, but I keep getting the $ uneclared variable, there is a way to get it to see the $ variable. Is there a way to close the compiler to view the jQuery library, but not compile it. here is my ant script
<?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"> <sources dir="${basedir}/src"> <file name="js.js"/> </sources> </jscomp> </target> </project>
My jquery library is called min.js and its in the src folder with js.js
I am sure this is a simple question, but I just missed something. Thanks in advance!
source share