2017-12-24 16 views
0

코드에서 로컬 서버 설정 경로를 설정하는 방법. 지금 나는이 http://localhost:8080/처럼되고있다. 그러나 나는 http://localhost/myproject/index.html를 원한다. 그것은 때때로 http://localhost/myproject/와 같다. 이제 Chrome에서 열리고 있지만 Firefox를 설정하고 싶습니다.코드 대 서버 경로 설정 방법

package.json

{ 
"name": "TS", 
"version": "1.0.0", 
"description": "demo project.", 
"scripts": { 
"lite": "lite-server --port 8080", 
"start": "npm run lite" 
}, 
"author": "", 
"license": "ISC", 
"devDependencies": { 
"lite-server": "^1.3.1" 
} 
} 

tasks.json

{ 
    // See https://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format 
    "version": "2.0.0", 
    "tasks": [ 
    { 
     "type": "npm", 
     "script": "lite", 
     "group": { 
      "kind": "build", 
      "isDefault": true 
     } 
    }, 
    { 
     "type": "npm", 
     "script": "start", 
     "problemMatcher": [] 
    } 
] 
    } 

답변

0

VSC는 기본 브라우저를 엽니 다. Firefox를 기본 설정으로 설정하기 만하면됩니다.

+0

코드 사용 방법 –