[]laya2.0用FlashDevelop调用编译,总是打开bin\h5\index.html

下载2.0ide后,我用layaide2.0beta2创建一个新2d示例项目
在layaide里按运行没问题,打开的页面是bin\index.html
可是在flashdevelop里运行却有问题,每次打开的页面都是bin\h5\index.html
.laya/launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "layaAir",
"type": "chrome",
"request": "launch",
"file": "${workspaceRoot}/bin/index.html",
"runtimeExecutable": "${execPath}",
"useBuildInServer": true,
"sourceMaps": false,
"webRoot": "${workspaceRoot}",
"port": 9222,
"fixedPort":false,
"sourceMapPathOverrides": {
"src/*": "${workspaceRoot}/src/*"
}
},
{
"name": "chrome调试",
"type": "chrome",
"request": "launch",
"file": "${workspaceRoot}/bin/index.html",
// "换成自己的谷歌安装路径,": 比如
//window 默认安装路径为: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
//mac 系统上的默认安装路径为 "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
// "runtimeExecutable": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
"runtimeArgs": [
"--allow-file-access-from-files",
"--allow-file-access-frome-files",
" --disable-web-security"
],
"sourceMaps": false,
"webRoot": "${workspaceRoot}",
//假如谷歌调试报userDataDir不可用,请把谷歌安装路径取得管理员权限,或者更换${tmpdir}为其他可以读写的文件夹,也可以删除。
"userDataDir": "${workspaceRoot}/.laya/chrome",
"fixedPort":false,
"sourceMapPathOverrides": {
"src/*": "${workspaceRoot}/src/*"
}
}
]
}

 
flashdevelop运行输出:
Running process: D:\Laya3DTest\LayaAir\resources\app\out\vs\layaEditor\laya\libs\2.0.0beta2\as\layajs.exe "D:\Laya3DTest\code\3dtest\3dtest.as3proj";out=bin/js/bundle.js;iflash=false;quickcompile=false;outlaya=true;
Laya AS2JS Compiler[Ver 2018091801] start...
Quick Compile: false
Project file: D:\Laya3DTest\code\3dtest\3dtest.as3proj.
Main Class: D:/Laya3DTest/code/3dtest/src/Main.as
D:/Laya3DTest/code/3dtest/bin/h5/D:/Laya3DTest/code/3dtest//bin/js/bundle.js(0): Info: Build out js sucess! D:/Laya3DTest/code/3dtest/bin/h5/D:/Laya3DTest/code/3dtest//bin/js/bundle.js
Build success.
Done(0)
已邀请:

Laya_XS

赞同来自:

LayaIDE1.x 跟 LayaIDE2.x编译做了调整,你可以参考下这个链接说明,应该可以解决你的问题:
http://ldc2.layabox.com/doc/?nav=zh-as-1-0-2

要回复问题请先

商务合作
商务合作