how to select the js file not in manual when build files with ant?

请问 ant打包 ,模板的build.xml,里面那么多的cocos2d的js,但是很多都没有使用,有什么办法可以根据自己代码的使用自动选择吗?
就是用了哪些,就打包哪些,这样减少加载时间。

Hi, @tellyounews

Not long before, you can only do this manually, but Cocos2d-JS v3.0a have been released last friday, and you can configure sub modules of engine as you need.

You need to find project.json in your project directory, setup the module section with the modules you need, all definitions for modules can be found in /frameworks/cocos2d-html5/moduleConfig.json

Detailed documentation about project.json can be found here in Chinese: http://www.cocos2d-x.org/docs/manual/framework/html5/v3.0/project-json/zh
And information about moduleConfig.json can be found in this documentation: http://www.cocos2d-x.org/docs/manual/framework/html5/v3.0/moduleconfig-json/zh

And about Cocos2d-JS, you can refer to this topic: http://www.cocos2d-x.org/forums/19/topics/48033

Huabin

thanks