VSCode 用chrome调试时relativeFile 怎样替换一些值,比如 docs开头。

文件在 /docs/index.md,我在启动时希望访问 /index,去掉docs和.md
我已经将docs配到了webRoot,

启动地址 http://localhost:3000/docs/in...
期望地址 http://localhost:3000/index

求解决

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:3000/${relativeFile}",
      "webRoot": "${workspaceFolder}/docs/"
    }
  ]
}
阅读 730
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进