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": []
}
]
}
コードの使用方法 –