Visual studio code 如何在运行时设置vs代码配置?
因此,我在launch.json中有以下内容Visual studio code 如何在运行时设置vs代码配置?,visual-studio-code,configuration,Visual Studio Code,Configuration,因此,我在launch.json中有以下内容 { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"runtimeArgs": ["--disable-web-security"]
}
]
}
我想根据环境设置以下内容,换句话说,如果在dev中此属性为空:
"runtimeArgs": ["--disable-web-security"]
这可能吗