[color=rgba(0, 0, 0, 0.85)]task.json 配置是: {
"version": "0.1.0",
"command": "egret",
"isShellCommand": true,
"tasks": [
{
"taskName": "build",
"showOutput": "always",
"args": [
"build",
"-sourcemap"
],
"problemMatcher": "$tsc"
},
{
"taskName": "clean",
"showOutput": "always",
"args": [
"build",
"-e"
],
"problemMatcher": "$tsc"
},
{
"taskName": "publish",
"showOutput": "always",
"args": [
"publish"
],
"problemMatcher": "$tsc"
}
]
}
=========================================
launch.json 配置是:
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
// "url": "http://192.168.200.84:3000/index.html",
"webRoot": "${workspaceFolder}",
"file": "${workspaceFolder}/index.html",
"sourceMaps": true,
//"preLaunchTask":"build",
"userDataDir":"${tmpdir}",
"port":5433
}
]
}
运行无法报错,是黑屏
|