小白踩坑经历分享,大神莫嘲笑。
项目开发中想使用live-server配置个代理服务免去在本地搭建后台环境,在网上找了很多live-server的文章看过后一直没有配置成功,后来终于找到了问题的根源,以下是配置截图:
package.json
{
...
"scripts": {
"start": "live-server --host=localhost --port=8081 --proxy=/alloverview:http://192.168.1.107:8080/alloverview"
}
...
}
test.js
$.