如何在运行时设置vs代码配置?

时间:2020-09-24 19:30:25

标签: 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.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"]

这可能吗?

0 个答案:

没有答案