我的工作区文件夹结构如下:
main_folder offline_unit gulpfile.babel.js online_unit test_unit
我只能在launch.json中设置main_folder,如何在offline_unit中设置它?
我尝试过将.vscode文件夹移动到offline_unit中,但没有工作。
launch.json看起来像这样
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Gulp task",
"program": "/usr/local/bin/gulp",
"args": [
"build"
]
}
]
}发布于 2019-01-10 14:49:34
我让它以一种稍微精细的方式工作,使用下面的launch.json
...
{
"type": "node",
"request": "launch",
"name": "Gulp task",
"program": "/usr/local/bin/gulp",
"args": [
"--gulpfile",
"offline-processor/gulpfile.babel.js",
"build"
]
}
...指定全局gulp作为程序,并使用--gulpfile指定嵌套gulpfile.babel.js的路径
有什么更好的方法吗?
https://stackoverflow.com/questions/54130726
复制相似问题