cocos2d / cocos2d-html5

Cocos2d for Web Browsers. Built using JavaScript.
https://www.cocos.com
3.07k stars 902 forks source link

build instructions? #3429

Open metalim opened 7 years ago

metalim commented 7 years ago

Old method of building cocos2d-html5 (cd tools && ant) does not work anymore, as build.xml contains deprecated list of files (camera, etc) since summer 2016. Are there new build instructions?

dmrdev commented 7 years ago

Had the same issue. I think the other method is supposed to use now.

Use cocos deploy -p web -m release instead and your game will be compiled to a single file game.min.js located in the publish\html5 subfolder of your project.

Moreover this method includes only modules specified in project.json's modules section.