Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 671 Bytes

File metadata and controls

25 lines (15 loc) · 671 Bytes

moduleConfig.json

Summary

The old jsloader.js is replaced with moduleConfig.json to make the config pure and support tools like cocos-console better.

Description

module

All the modules of Cocos2d-html5 are configured here. If you need some modules in your project, just configure the names in modules of project.json.

The config of each module is an array which includes module name or JavaScript path, like:

"menus" : [
    "core", "actions",

    "cocos2d/menus/CCMenuItem.js",
    "cocos2d/menus/CCMenu.js"
]

This means menus requires core and actions, and has cocos2d/menus/CCMenuItem.js and cocos2d/menus/CCMenu.js.