반응형

디버깅 실행전 http-server 실행 시키기 위한 작업

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "start http-server",
      "type": "shell",
      "command": "npx http-server . -p 8080",
      "isBackground": true,
      "problemMatcher": {
        "pattern": [
          {
            "regexp": ".*",
            "file": 1,
            "location": 2,
            "message": 3
          }
        ],
        "background": {
          "activeOnStart": true,
          "beginsPattern": "Starting up http-server",
          "endsPattern": "Available on:"
        }
      }
    }
  ]
}

반응형

'03.웹' 카테고리의 다른 글

[VSCODE] launch.json  (1) 2025.05.13
[AWS] RDS "Too many connections"  (1) 2024.05.26
[웹] HTTP vs HTTPS 개념과 차이점  (1) 2024.05.15
[Svelte] 기본 프로젝트 생성  (0) 2023.11.16
[PHP] composer(컴포저) 설치  (1) 2023.11.03

+ Recent posts