1.egret create_lib egret
2.修改 tsconfig 文件
{
"compilerOptions": {
"target": "es5",
"outFile": "bin/egret/egret.js",
"allowJs": true
},
"files": [
"egret.js",
"egret.min.js"
]
}
3.修改package.json
{
"name": "egret",
"compilerVersion": "5.2.21",
"typings": "typings/egret.d.ts"
}
4.复制你修改后的库文件 js .d.ts 具体目录
5.生成命令 egret build demo