关于javascript:使用egret编译laya

26次阅读

共计 249 个字符,预计需要花费 1 分钟才能阅读完成。

解决方案

1. 下载 laya 应用的 egret 框架

2. 解压到 laya 我的项目

3.egret wing 关上我的项目,编译一次(下载 egret-webpack-bundler)

4. 批改 scripts/plugins/node_modules/@egret/egret-webpack-bundler/lib/index.js 文件
64 行:

open_1.openUrl("http://localhost:" + port + "/bin/index2.html");

125 行:

filename: 'bin/main.js'

正文完
 0