launch.json 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "type": "node",
  6. "request": "launch",
  7. "name": "启动React项目",
  8. "runtimeExecutable": "npm",
  9. "runtimeArgs": ["run-script", "dev"]
  10. },
  11. {
  12. "type": "node",
  13. "request": "launch",
  14. "name": "预览React项目",
  15. "runtimeExecutable": "npm",
  16. "runtimeArgs": ["run-script", "preview"]
  17. },
  18. {
  19. "type": "chrome",
  20. "request": "launch",
  21. "name": "调试Chrome4173",
  22. "url": "http://localhost:4173",
  23. "webRoot": "${workspaceFolder}"
  24. },
  25. {
  26. "type": "chrome",
  27. "request": "launch",
  28. "name": "调试Chrome5173",
  29. "url": "http://localhost:5173",
  30. "webRoot": "${workspaceFolder}"
  31. }
  32. ],
  33. "compounds": [
  34. {
  35. "name": "Launch Next Dev Server and Chrome",
  36. "configurations": ["启动React项目", "调试Chrome5173"]
  37. },
  38. {
  39. "name": "Preview on Chrome",
  40. "configurations": ["预览React项目", "调试Chrome4173"]
  41. }
  42. ]
  43. }