-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
18 lines (17 loc) · 940 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?>
<project name="Javascript compress project" basedir="." default="compile">
<!-- The classpath should be modified to the real closure compiler jar file path -->
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="./compiler.jar"/>
<target name="compile">
<jscomp compilationLevel="simple" warning="quiet"
debug="false" output="./game.min.js">
<!-- Uncomment the line below to enable sourcemap generation -->
<!--sourceMapOutputFile="./cocos2d-js-sourcemap" sourceMapFormat="V3"> -->
<sources dir="./">
<!-- You may need to modify the file name to the actual downloaded file name -->
<file name="cocos2d-js-lite.js"/>
<!-- Put your own js files here, dependency order is also important -->
</sources>
</jscomp>
</target>
</project>