Layabox chrome浏览器生成单独调试文件

2023-07-11  本文已影响0人  人气小哥

如果你的layabox 项目 只有一个bundle.js
那么需要设置
\proName.laya\compile.js 中的
return bundle.write({
file: workSpaceDir + '/bin/js/bundle.js',
format: 'iife',
name: 'laya',
sourcemap: true
});

sourcemap: true

如果是vscode调试需要开启
\proName\tsconfig.json
中的
"compilerOptions": {
"module": "es6",
"target": "es6",
"noEmitHelpers": true,
"sourceMap": true
},

"sourceMap": true

上一篇 下一篇

猜你喜欢

热点阅读