vue把localhost改成ip地址无法访问—解决方法
修改 package.json文件 增加 --hostip 重新编译即可{"name": "m5","version": "1.0.0","description": "n","author": "n","private"
·
修改 package.json文件 增加
--host ip 重新编译即可
{
"name":
"m5",
"version":
"1.0.0",
"description":
"n",
"author":
"n",
"private":
true,
"scripts": {
"dev"
:
"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
--host 192.168.1.12
"
,
"start":
"npm run dev",
"unit":
"jest --config test/unit/jest.conf.js --coverage",
"test":
"npm run unit",
"build":
"node build/build.js"
},
更多推荐
已为社区贡献42条内容
所有评论(0)