cocos2dx-js 或者 LayaBox 使用 pomelo组件。
1.安装 node 加装 component组件执行: npm install -g component 如下
2.执行 component -V 查看是否安装完毕
3.执行 component build 注意:当前文件夹必须有 component.json 在pomelo web-server/public/js/lib 下,会根据 local 文件夹下面 index.js require内容打包到build文件夹下面, 我的配置如下: